AddToFaction - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

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

Syntax[edit | edit source]

Function AddToFaction(Faction akFaction)

Parameters[edit | edit source]

  • akFaction: The faction to which the Actor should be added.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

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

Notes[edit | edit source]

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 SetAlly - Faction.

See Also[edit | edit source]