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

Description

Wiki Description

Finds and returns the first faction in the array that the actor belongs to.

Documentation Comment

jduvall


Caveats


Parameters

ActorActorToCheck

CK Wiki Description

The Actor whose factions we are examining.

Faction[]ArrayToCheck

CK Wiki Description

The Faction array we are looking in


Examples

Faction curFaction = CommonArrayFunctions.GetFirstFoundFactionInArrayForActor(FriendlyRaider, HostileFactions)
if curFaction
  FriendlyRaider.RemoveFromFaction(curFaction) ; make the raider slightly more friendly...
endIf

Auto-Generated Example

Actor myActor__ActorToCheck
Faction[] myFactionArray__ArrayToCheck

Faction returnedValue = CommonArrayFunctions.GetFirstFoundFactionInArrayForActor(myActor__ActorToCheck, myFactionArray__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.