Difference between revisions of "SetGlobalVariable"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Jazzisparis
(Created page with "{{Function |origin = JIP |summary = Sets the value of a global variable. |name = SetGlobalVariable |returnType = value:float |arguments = {{FunctionArgument |Name =...")
 
imported>Jazzisparis
Line 24: Line 24:
*This function is meant to be used for setting the values of <u>external</u> global variables (i.e. from other mods). You first use [[BuildRef]] and create a reference to the global, on which this function can then be called.
*This function is meant to be used for setting the values of <u>external</u> global variables (i.e. from other mods). You first use [[BuildRef]] and create a reference to the global, on which this function can then be called.
==See Also==
==See Also==
*[[GetGlobalVariable]]
[[Category:Functions_(JIP)]]
[[Category:Functions_(JIP)]]

Revision as of 12:45, 28 March 2015

< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

Sets the value of a global variable.

Syntax

[help]
(value:float) SetGlobalVariable global:ref newValue:float

Example

int	iModIndex
ref	rGlobalVar


set iModIndex to GetModIndex "LonesomeRoad.esm"
set rGlobalVar to BuildRef iModIndex 13842

SetGlobalVariable rGlobalVar 15.6

Notes

  • This function is meant to be used for setting the values of external global variables (i.e. from other mods). You first use BuildRef and create a reference to the global, on which this function can then be called.

See Also