SetReaction - Faction
Revision as of 12:19, 20 September 2014 by imported>Terra Nova2
Member of: Faction Script
Sets the faction's reaction towards the other one.
Syntax[edit | edit source]
Function SetReaction(Faction akOther, int aiNewValue) native
Parameters[edit | edit source]
- akOther: The Faction to set the reaction towards.
- aiNewValue: The value to set the reaction to.
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Set the Orcs' faction reaction to the Elves
Orcs.SetReaction(Elves, -50)
Notes[edit | edit source]
- This is best used in conjunction with AddToFaction as members of factions that oppose the PlayerFaction may have a high Aggression level, and you must use this function and set the value to 3 for making them friends.