Mod:Creation Kit/SetAlly - Faction

Member of: Mod:Creation Kit/Faction Script

Sets the two factions to be friend or allies of eachother.

Syntax
Function SetAlly(Faction akOther, bool abSelfIsFriendToOther = false, bool abOtherIsFriendToSelf = false) native

Parameters

 * akOther: The Faction to form a relationship with.
 * abSelfIsFriendToOther: If true, the faction this function is called on will be a friend to the other faction. If false, it will be an ally.
 * Default: False
 * abOtherIsFriendToSelf: If true, the other faction will be a friend to this faction. If false, it will be an ally.
 * Default: False

Return Value
None.

Examples
Humans.SetAlly(Elves) Humans.SetAlly(Dwarves, true, true)
 * Make the two factions allies
 * Make the Humans and Dwarves simply friends