GetReaction - Faction

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: Faction Script

Gets the faction's reaction towards the other one.

Syntax[edit | edit source]

int Function GetReaction(Faction akOther) native

Parameters[edit | edit source]

  • akOther: The Faction to get a reaction towards.

Return Value[edit | edit source]

This faction's reaction towards the other one.

The following values are returned:

  • 0 - Neutral
  • 1 - Enemy
  • 2 - Ally
  • 3 - Friend

Examples[edit | edit source]

; Get the Orcs' faction reaction to the Elves
int orcsTowardsElves = Orcs.GetReaction(Elves)

See Also[edit | edit source]