Difference between revisions of "GetFactions - Actor"
Jump to navigation
Jump to search
Added Example
imported>TidalWraith (Using a new format for this one let me know what you think.) |
imported>TidalWraith (Added Example) |
||
Line 14: | Line 14: | ||
A [[Faction Script| Faction]] array is returned containing all factions the actor is a part of within the specified rank range | A [[Faction Script| Faction]] array is returned containing all factions the actor is a part of within the specified rank range | ||
== Examples == | |||
<source lang="papyrus"> | |||
;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(PlayerRef.GetName() + " is a part of the following factions: " + PlayerFactions) | |||
</source> | |||
== See Also == | == See Also == | ||
* [[AddToFaction - Actor| AddToFaction ]] | * [[AddToFaction - Actor| AddToFaction ]] |