GetFactionReaction - Faction
Jump to navigation
Jump to search
Member of: Faction Script
Get the faction-based reaction between this faction and an actor.
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 a faction and an actor.
The following values are returned:
- 0: Neutral
- 1: Enemy
- 2: Ally
- 3: Friend
Examples[edit | edit source]
; Print a message if Jake's faction is a friend of the radier faction
if (RaiderFaction.GetFactionReaction(Jake) == 3) ; 3 = Friend
Debug.Trace("Raider Faction is a friend of Jake")
endIf