SetEnemy - Faction

(Redirected from Faction.SetEnemy (Papyrus))

Member of: Faction Script

Sets the two factions to be neutral or enemies of each other.

SyntaxEdit

Function SetEnemy(Faction akOther, bool abSelfIsNeutralToOther = false, bool abOtherIsNeutralToSelf = false) native

ParametersEdit

  • akOther: The Faction to form a relationship with.
  • abSelfIsNeutralToOther: If true, the faction this function is called on will be neutral to the other faction. If false, it will be an enemy.
    • Default: False
  • abOtherIsNeutralToSelf: If true, the other faction will be neutral to this faction. If false, it will be an enemy.
    • Default: False

Return ValueEdit

None.

ExamplesEdit

; Make the two factions enemies
Orcs.SetEnemy(Elves)


; Make the Orcs and Goblins simply neutral to eachother
Orcs.SetEnemy(Goblins, true, true)

See AlsoEdit