SetAlly - Faction

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: Faction Script

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

Syntax[edit | edit source]

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

Parameters[edit | edit source]

  • 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[edit | edit source]

None.

Examples[edit | edit source]

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


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

See Also[edit | edit source]