setglobalΒΆ

nil setglobal ( object key , object 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.

Arguments:

  • key The key to associate in the globals
  • value The value to associate in the globals