- Found in:
- Vanilla
Description
Wiki Description
Finds and returns the first faction in the array that the actor belongs to.
Documentation Comment
jduvall
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...
endIfAuto-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
