setglobal

guerilla.setglobal(key, value)

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.

param key:The key to associate in the globals
type key:object
param value:The value to associate in the globals
type value:object