SetAlly - Faction

(Redirected from Faction.SetAlly (Papyrus))

Member of: Faction Script

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

SyntaxEdit

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

ParametersEdit

  • 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 ValueEdit

None.

ExamplesEdit

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


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

See AlsoEdit