SetAlly - Faction

Revision as of 15:27, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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