SetRefVariable
Jump to navigation
Jump to search
< [[::Category:Functions|Category:Functions]]
A function added by the New Vegas Script Extender.
Description
Sets the value of the 'ref' variable specified by name for the calling reference or specified scriptable object. Added by NVSE V4.5.6.
Syntax
(none) ref.SetRefVariable VarName:string NewValue:form Parent:Object
Example
ref rActor rActor.SetRefVariable "rHome", MyHomeXMarker ; Alternatively, (or required if rActor holds a base form, such as a quest): SetRefVariable "rHome", MyHomeXMarker, rActor
See Also
- SetVariable (To set a numeric rather than ref var)
- HasVariable (to check if a variable exists at all)
- GetVariable (to return the existing value)
- GetRefVariable (For ref rather than numeric variables)
- GetArrayVariable (and for arrays)