GetBaseFactions

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 base form of the specified actor (which may be base) or calling reference belongs.

Syntax

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

Example

array_var Sunny_Factions

Let Sunny_Factions := GetBaseFactions GSSunnySmiles

Ar_Dump Sunny_Factions would print:

** Dumping Array #17 **
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