SetVariable

From the Fallout3 GECK Wiki
Revision as of 20:18, 30 August 2014 by imported>Odessa (+see also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 numeric variable specified by name for the calling reference or specified scriptable object. Added by NVSE V4.5.6.

Syntax

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