SetReaction - Faction

From the CreationKit Wiki
Revision as of 12:19, 20 September 2014 by imported>Terra Nova2
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Faction Script

Sets the faction's reaction towards the other one.

Syntax

Function SetReaction(Faction akOther, int aiNewValue) native

Parameters

  • akOther: The Faction to set the reaction towards.
  • aiNewValue: The value to set the reaction to.

Return Value

None.

Examples

; Set the Orcs' faction reaction to the Elves
Orcs.SetReaction(Elves, -50)

Notes

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

See Also