GetActiveFactions

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Returns an array containing all factions to which the specified or calling actor belongs.

Syntax

[help]
(array) actor.GetActiveFactions Target:actor 

Example

array_var Sunny_Factions

let Sunny_Factions := SunnyREF.GetActiveFactions

Ar_Dump Sunny_Factions:

** Dumping Array #19 **
Refs: 1 Owner 0A: nvse-test.esp
[ 0.000000 ] : Sunny Smiles Faction (001691EA)
[ 1.000000 ] : <no name> (0013F8A4)
[ 2.000000 ] : <no name> (0013F89B)
[ 3.000000 ] : Goodsprings Militia (0015EC58)
[ 4.000000 ] : Goodsprings Faction (00104C6E)
[ 5.000000 ] : Goodsprings Ringo Allies Faction (0015F8DB)

See Also