Runes of Magic Wiki
Advertisement

Returns the variable from the global environment.

var = getglobal (varName)

Parameters[]

Arguments[]

varName
string - The name of the global variable to get.

Returns[]

var
any - The returned variable.

Example[]

local editText = getglobal(this:GetName().."EditBox"):GetText()

Exactly the same as (this alternative is faster as it saves a functioncall):

local editText = _G[this:GetName().."EditBox"]:GetText()

Notes[]

Related Functions[]

Advertisement