Mod:Creation Kit/GetFactionReaction - Actor

Member of: Mod:Creation Kit/Actor Script

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

Syntax
int Function GetFactionReaction(Actor akOther) native

Parameters

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

Return Value
The faction-based reaction between the two actors.

The following values are returned:
 * 0: Neutral
 * 1: Enemy
 * 2: Ally
 * 3: Friend

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