GetVariable
From GECK
A function added by the New Vegas Script Extender.
Contents
Description
Returns the value of the numeric variable specified by name for the calling reference or specified scriptable object / quest.
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
For accessing quest variables from a mod without having to add that mod as a master, using GetFormFromMod:
float fFloat ref rQuest let rQuest := GetFormFromMod "Some Plugin.esp" "AED" let fFloat := GetVariable "varName" rQuest
See Also
- GetRefVariable (For ref rather than numeric variables)
- GetArrayVariable (and for arrays)
- HasVariable (to check if a variable exists at all)
- ShowVars / Con_ShowVars (to print all variables/values to console)
- SetVariable
- SetRefVariable
- Associating data with a reference