GetGlobalVariable

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Returns the value of a Global Variable.

Syntax

[help]
(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 or GetFormFromMod and create a reference to the global, on which this function can then be called.

See Also