Skip to content

GetActorTarget

The actor an actor is fighting.

GetActorTarget(id)
Parameter Type
id number the actor

number | nil - the other actor’s id; nil when it fights none (or fights a player)

if GetActorTarget(guard) == nil then SetActorHostileToActor(guard, bandit, true) end

SetActorHostileToActor · the NPC actors group of the index