GetFactionRank - Actor
Member of: Actor Script
Gets this actor's rank in the specified faction.
SyntaxEdit
int Function GetFactionRank(Faction akFaction) native
ParametersEdit
- akFaction: The Faction to get this actor's rank in.
Return ValueEdit
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.
ExamplesEdit
; Is the Jarl in the empire faction?
if (Jarl.GetFactionRank(EmpireFaction) >= 0)
Debug.Trace("Jarl is in the empire faction")
endIf