Mod:Creation Kit/GetFactionRank - Actor

Member of: Mod:Creation Kit/Actor Script

Gets this actor's rank in the specified faction.

Syntax
int Function GetFactionRank(Faction akFaction) native

Parameters

 * akFaction: The Faction to get this actor's rank in.

Return Value
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
if (Jarl.GetFactionRank(EmpireFaction) >= 0) Debug.Trace("Jarl is in the empire faction") endIf
 * Is the Jarl in the empire faction?