SetEnemy - Faction
Revision as of 16:27, 18 October 2011 by imported>Vitamant (1 revision: Clobber re-import by Henning)
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)