GetVariable

Revision as of 11:47, 5 August 2014 by imported>Odessa (cat + see also)
< [[::Category:Functions|Category:Functions]]

A function added by the New Vegas Script Extender.

Description

Returns the value of the numeric variable specified by name for the calling reference or specified scriptable object. Added by NVSE V4.1.

Syntax

(float) ref.GetVariable VarName:string Parent:Object

Example

ref rActor
int WaitState

let WaitState := rActor.GetVariable "Waiting"

; Alternatively, (or required if rActor holds a base form): 

let WaitState := GetVariable "Waiting", rActor

See Also