Difference between revisions of "GetVariable"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Odessa
m (cat + see also)
imported>Odessa
m (+see also)
 
Line 32: Line 32:
*[[SetVariable]] (Added by NVSE 4.5.6)
*[[SetVariable]] (Added by NVSE 4.5.6)
*[[SetRefVariable]] (Aded by NVSE 4.5.6)
*[[SetRefVariable]] (Aded by NVSE 4.5.6)
*[[Associating data with a reference]]
[[Category:Functions_(NVSE)]]
[[Category:Functions_(NVSE)]]
[[Category:Script Functions]]
[[Category:Script Functions]]

Latest revision as of 19:18, 30 August 2014

< [[::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

[help]
(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