SetReaction - Faction

From the CreationKit Wiki
Jump to navigation Jump to search

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.

See Also[edit | edit source]