- Found in:
- Vanilla
boolfunctionCheckActorAgainstFactionArray(ActorObjectToCheck, Faction[]ArrayToCheck, boolreturnValueIfArrayIsEmpty=false)Global
Description
Wiki Description
Loops through an array of Factions and checks if the specified actor in in any of them.
Documentation Comment
jduvall
Caveats
Parameters
boolreturnValueIfArrayIsEmpty=false
CK Wiki Description
If the array is empty, return this.
- Default:False
Examples
if CommonArrayFunctions.CheckActorAgainstFactionArray(Dogmeat, HostileFactions)
Debug.Trace("Dogmeat is in a hostile faction!")
endIfAuto-Generated Example
Actor myActor__ObjectToCheck
Faction[] myFactionArray__ArrayToCheck
bool myBool__returnValueIfArrayIsEmpty
bool returnedValue = CommonArrayFunctions.CheckActorAgainstFactionArray(myActor__ObjectToCheck, myFactionArray__ArrayToCheck, myBool__returnValueIfArrayIsEmpty)Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
