setglobalΒΆ
Set a Lua global
By default, plugins cannot override the main Lua state. Globals are actually locals to the script, so a plugin cannot break the main Guerilla state. To forcefully set a global in the main state, use this function. Warning, this function is unprotected and may cause Guerilla to crash if a necessary global is overwritten.
Arguments:
key The key to associate in the globalsvalue The value to associate in the globals