GetFactionRank - Actor
Revision as of 08:45, 28 October 2011 by imported>Scornett (→Examples)
Member of: Actor Script
Gets this actor's rank in the specified faction.
Syntax[edit | edit source]
int Function GetFactionRank(Faction akFaction) native
Parameters[edit | edit source]
- akFaction: The Faction to get this actor's rank in.
Return Value[edit | edit source]
The actor's rank in the specified faction:
- -2 if the Actor is not in the faction.
- -1 if the Actor is in the faction, with a rank set to -1. By convention, this means they may eventually become a member of this faction.
- A non-negative number equal to the actor's rank in the faction.
Examples[edit | edit source]
; Is the Jarl in the empire faction?
if (Jarl.GetFactionRank(EmpireFaction) >= 0)
Debug.Trace("Jarl is in the empire faction")
endIf