GetFactionRank - Actor

From Creation Kit
Jump to: navigation, search

Member of: 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

; Is the Jarl in the empire faction?
if (Jarl.GetFactionRank(EmpireFaction) >= 0)
  Debug.Trace("Jarl is in the empire faction")
endIf

See Also