Difference between revisions of "SetVariable"
Jump to navigation
Jump to search
imported>Odessa (Created - source nvsewhatsnew) |
imported>Odessa m (+see also) |
||
Line 33: | Line 33: | ||
*[[GetRefVariable]] (For ref rather than numeric variables) | *[[GetRefVariable]] (For ref rather than numeric variables) | ||
*[[GetArrayVariable]] (and for arrays) | *[[GetArrayVariable]] (and for arrays) | ||
*[[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
Sets the value of the numeric variable specified by name for the calling reference or specified scriptable object. Added by NVSE V4.5.6.
Syntax
(none) ref.SetVariable VarName:string NewValue:float Parent:Object
Example
ref rCompanion rCompanion.SetVariable "Waiting", 1 ; Alternatively, (or required if rCompanion holds a base form, such as a quest): SetVariable "Waiting", 1, rCompanion
See Also
- SetRefVariable (To set a ref rather than numeric 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)
- Associating data with a reference