- Found in:
- SKSE
Description
Wiki Description
Returns an array of Factions the Actor is a member of filtered by the Actors rank. (Maximum Range of -128 to 127)
Documentation Comment
Returns all factions with the specified min and max ranks (-128 to 127)
Caveats
Parameters
intminRank
CK Wiki Description
The minimum rank the Actor must be within the faction.
intmaxRank
CK Wiki Description
The maximum rank the Actor can be within the faction.
Examples
;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)Auto-Generated Example
int myInt__minRank
int myInt__maxRank
Faction[] returnedValue = myActor__toCallFunctionOn.GetFactions(myInt__minRank, myInt__maxRank)Related Pages
- Actor.AddToFaction(...)
- Actor.SetFactionRank(...)
- Actor.GetFactionRank(...)
- Actor.RemoveFromAllFactions()
- Faction
