AuxiliaryVariableSetRef

From the Fallout3 GECK Wiki
Revision as of 00:16, 25 April 2015 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Sets the ref value of the element at the specified <i>index</i> (optional; default is 0) of the specified Auxiliary Variables|Auxiliary...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

Sets the ref value of the element at the specified index (optional; default is 0) of the specified Auxiliary-Variable. If index equals -1, the value will be appended as a new element, at the end.

Syntax

[help]
(success:bool) reference.AuxiliaryVariableSetRef varName:string value:ref index:int baseForm:ref 

Or:

(success:bool) reference.AuxVarSetRef varName:string value:ref index:int baseForm:ref

Example

RaulRef.AuxiliaryVariableSetRef "someVarName" Ammo127mm
AuxVarSetRef "someVarName" CraigBooneRef -1 ArmorCombat

See Also