Difference between revisions of "AddToFaction - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Rhavlovick
m (1 revision: Clobber re-import by Henning)
 
imported>Terra Nova2
(Added note regarding this function not working as expected if faction members aggression are very aggressive.)
Line 21: Line 21:
Hrothgar.AddToFaction(DBFaction)
Hrothgar.AddToFaction(DBFaction)
</source>
</source>
== Notes ==
*For faction members of factions normally an enemy to the player, simply adding the player to the faction will not make them friendly to the play if their [http://www.creationkit.com/AI_Data_Tab Aggression] level is "Very Aggressive". Therefore when you add the player to such factions, you must also change their reaction accordingly through [[SetReaction - Faction]] and make them a "friend".


== See Also ==
== See Also ==

Revision as of 09:48, 11 August 2014

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

  • For faction members of factions normally an enemy to the player, simply adding the player to the faction will not make them friendly to the play if their Aggression level is "Very Aggressive". Therefore when you add the player to such factions, you must also change their reaction accordingly through SetReaction - Faction and make them a "friend".

See Also