Difference between revisions of "IsHostileToActor- Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Rhavlovick
m (1 revision: Clobber re-import by Henning)
 
imported>Seorin
Line 23: Line 23:
endIf
endIf
</source>
</source>
== Notes ==
*If given a NONE value, this function will crash the game.


== See Also ==
== See Also ==
*[[Actor Script]]
*[[Actor Script]]

Revision as of 21:05, 10 November 2012

Member of: Actor Script

Check if this actor is hostile to another actor

Syntax

bool Function IsHostileToActor(Actor akActor) native

Parameters

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

Return Value

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

Examples

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

Notes

  • If given a NONE value, this function will crash the game.

See Also