AddToFaction - Actor

From Creation Kit
Jump to: navigation, 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

Function AddToFaction(Faction akFaction)

Parameters

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

Return Value

None.

Examples

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

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

See Also