Difference between revisions of "AddToFaction - Actor"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Vitamant
m (1 revision: Clobber re-import by Henning)
 
imported>Scrivener07
(Taking in account for NPCs with high aggression.)
 
Line 21: Line 21:
Hrothgar.AddToFaction(DBFaction)
Hrothgar.AddToFaction(DBFaction)
</source>
</source>
== 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 ==
== See Also ==

Latest revision as of 00:02, 27 March 2018

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]