Get your own free workspace
View
 

SetActorTarget

Page history last edited by Gamemaster 3 years, 11 months ago

 

SetActorTarget

Usage:

                SetActorTarget(Actor, [TargetActor])

Description:

The SetActorTarget command allows you to change the current target of an actor. When combined with SetActorAIState, this allows you to make NPCs attack any other actor who is a valid target. Not providing a target actor will set the target to nobody.

Example:

                Function Main()
                        // Make NPC attack player
                        SetActorTarget(ContextActor(), Actor())
                        SetActorAIState(ContextActor(), 3)
                        Return()
                End Function

Comments (0)

You don't have permission to comment on this page.