Background for Skyrim SE
Member of the Actor script
Faction[]functionGetFactions(intminRank, intmaxRank)Native

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)


Parameters

  1. intminRank

  2. intmaxRank


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


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.