SetEnemy - Faction

From Creation Kit
Jump to: navigation, search

Member of: Faction Script

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

Syntax

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

Parameters

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

None.

Examples

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


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

See Also