IsActorInArrayHostileToActor - CommonArrayFunctions

Revision as of 16:07, 1 December 2015 by imported>Plplecuyer (Created page with "Category:Scripting Category:Papyrus '''Member of:''' CommonArrayFunctions Script Checks to see if any of the actors in the array are hostile to the specified actor. ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: CommonArrayFunctions Script

Checks to see if any of the actors in the array are hostile to the specified actor.

SyntaxEdit

bool Function IsActorInArrayHostileToActor(Actor ActorToCheck, ObjectReference[] ArrayToCheck) Global

ParametersEdit

  • ActorToCheck: The Actor we are checking hostility towards
  • ArrayToCheck: The Actors to check for hostility (any non-actors are skipped)

Return ValueEdit

True if any of the actors in the array are hostile towards the passed-in actor. False otherwise.

ExamplesEdit

if CommonArrayFunctions.IsActorInArrayHostileToActor(Player, QuestActors)
   Debug.Trace("Better hide, they don't like the player much...")
endIf

See AlsoEdit