Background for Fallout 4
Member of the CommonArrayFunctions script
boolfunctionIsActorInArrayHostileToActor(ActorActorToCheck, ObjectReference[]ArrayToCheck)Global

Description

Wiki Description

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

Documentation Comment

jduvall


Caveats


Parameters

ActorActorToCheck

CK Wiki Description

The Actor we are checking hostility towards

ObjectReference[]ArrayToCheck

CK Wiki Description

The Actors to check for hostility (any non-actors are skipped)


Examples

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

Auto-Generated Example

Actor myActor__ActorToCheck
ObjectReference[] myObjectReferenceArray__ArrayToCheck

bool returnedValue = CommonArrayFunctions.IsActorInArrayHostileToActor(myActor__ActorToCheck, myObjectReferenceArray__ArrayToCheck)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.