MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / Spawn

Method Spawn

src/lua/LuaControl.cpp:101–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99
100
101int LuaControl::Spawn(lua_State* L) {
102 if (!ValidScript(L)) {
103 luaL_error(L, "this script can not control spawns");
104 }
105 CMDMGR.run("restart");
106 return 0;
107}
108
109
110int LuaControl::Pause(lua_State* L) {

Callers

nothing calls this directly

Calls 3

ValidScriptFunction · 0.85
luaL_errorFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected