IsHostileToActor - Actor

Member of: Actor Script

Check if this actor is hostile to another actor

SyntaxEdit

bool Function IsHostileToActor(Actor akActor) native

ParametersEdit

  • akActor: The actor to check if we're hostile to

Return ValueEdit

True if we're hostile to the actor, false if we're not

ExamplesEdit

; Is the dragon hostile to the guard?
if Dragon.IsHostileToActor(Guard)
  Debug.Trace("Dragon is hostile to the guard")
endIf

See AlsoEdit