GetBaseRanks

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Returns an array containing the ranks for each faction to which the base form of the calling reference or specified NPC belongs. The order of ranks corresponds to the factions returned by GetBaseFactions. Note that in Fallout: New Vegas, ranks are largely unused are usually zero.

Syntax

[help]
(array) actor.GetBaseRanks Target:NPC-or-Actor 

Example

array_var Sunny_Ranks

Let Sunny_Ranks := SunnyREF.GetBaseRanks

Ar_Dump Sunny_Ranks would print (as in most vanilla cases, all zero):

** Dumping Array #14 **
Refs: 1 Owner 0B: nvse-test.esp
[ 0.000000 ] : 0.000000
[ 1.000000 ] : 0.000000
[ 2.000000 ] : 0.000000
[ 3.000000 ] : 0.000000
[ 4.000000 ] : 0.000000
[ 5.000000 ] : 0.000000

See Also