SetAlly - Faction

From Creation Kit
Jump to: navigation, search

Member of: 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

; Make the two factions allies
Humans.SetAlly(Elves)


; Make the Humans and Dwarves simply friends
Humans.SetAlly(Dwarves, true, true)

See Also