GetActorTarget
The actor an actor is fighting.
Syntax
Section titled “Syntax”GetActorTarget(id)| Parameter | Type | |
|---|---|---|
id |
number | the actor |
Returns
Section titled “Returns”number | nil - the other actor’s id; nil when it fights none (or fights a player)
Example
Section titled “Example”if GetActorTarget(guard) == nil then SetActorHostileToActor(guard, bandit, true) endSee also
Section titled “See also”SetActorHostileToActor · the NPC actors group of the index
