Background for Fallout 4
Member of the Actor script
voidfunctionAddToFaction(FactionakFaction)

Description

Wiki Description

Adds the Actor to a specified Faction at rank 0. If the Actor is already in the faction, this function does nothing.

Documentation Comment

Adds this actor to a faction at rank 0 if they aren't already in it


Caveats

CK Wiki - Notes

NPCs with an aggression level of 2(Very Aggressive) will be hostile to members of the same faction unless said faction is assigned as an ally. This can be done using Faction.SetAlly(...).


Parameters

FactionakFaction

CK Wiki Description

The Faction to which the Actor should be added.


Examples

; Add Hrothgar to the Dark Brotherhood 
Hrothgar.AddToFaction(DBFaction)

Auto-Generated Example

Faction myFaction__akFaction

myActor__toCallFunctionOn.AddToFaction(myFaction__akFaction)

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.