GetFactionReaction - Actor

From the CreationKit Wiki
Revision as of 15:26, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Get the faction-based reaction between this actor and another.

Syntax[edit | edit source]

int Function GetFactionReaction(Actor akOther) native

Parameters[edit | edit source]

  • akOther: The other actor to determine our faction-based reaction with.

Return Value[edit | edit source]

The faction-based reaction between the two actors.

The following values are returned: (Will eventually be an enum)

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

Examples[edit | edit source]

; Print a message if Jake's faction is a friend of Bob's faction
if (Bob.GetFactionReaction(Jake) == 3) ; 3 = Friend
  Debug.Trace("Bob is a friend of Jake")
endIf

See Also[edit | edit source]