GetFactions - Actor
Returns an array of Factions the Actor is a member of filtered by the Actors rank. (Maximum Range of -128 to 127)
SyntaxEdit
Faction[] Function GetFactions(int minRank, int maxRank) native
ParametersEdit
- minRank: The minimum rank the Actor must be within the faction.
- maxRank: The maximum rank the Actor can be within the faction.
Return ValueEdit
A Faction array is returned containing all factions the actor is a part of within the specified rank range.
ExamplesEdit
;This example grabs the player, then their factions and finally prints the array of factions to the Papyrus log.
Actor PlayerRef = Game.GetPlayer()
Faction[] PlayerFactions = PlayerRef.GetFactions(-128, 127);The maximum range allowed.
Debug.Trace("Player is a part of the following factions: " + PlayerFactions)