Difference between revisions of "GetGlobalVariable"
Jump to navigation
Jump to search
imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Returns the value of a global variable. |name = GetGlobalVariable |returnType = value:float |arguments = {{FunctionArgument |Nam...") |
imported>Jazzisparis |
||
(2 intermediate revisions by the same user not shown) | |||
Line 20: | Line 20: | ||
}} | }} | ||
==Notes== | ==Notes== | ||
*This function is meant to be used for retrieving | *This function is meant to be used for retrieving 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== | ||
*[[SetGlobalVariable]] | |||
[[Category:Functions_(JIP)]] | [[Category:Functions_(JIP)]] | ||
[[Category:Global Variable Functions (JIP)]] |
Latest revision as of 14:10, 30 March 2015
< [[::Category:Functions|Category:Functions]]
A function added by the JIP NVSE Plugin.
Description
Returns the value of a global variable.
Syntax
(value:float) GetGlobalVariable global:ref
Example
int iModIndex ref rGlobalVar float fValue set iModIndex to GetModIndex "LonesomeRoad.esm" set rGlobalVar to BuildRef iModIndex 13842 set fValue to GetGlobalVariable rGlobalVar
Notes
- This function is meant to be used for retrieving 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.