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

Method DropFlag

src/lua/LuaControl.cpp:119–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117
118
119int LuaControl::DropFlag(lua_State* L) {
120 if (!ValidScript(L)) {
121 luaL_error(L, "this script can not control flag drops");
122 }
123 CMDMGR.run("drop");
124 return 0;
125}
126
127
128int LuaControl::SetTarget(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