| 61 | //============================================================================// |
| 62 | |
| 63 | int LuaControl::Move(lua_State* L) { |
| 64 | if (!ValidScript(L)) { |
| 65 | luaL_error(L, "this script can not control movement"); |
| 66 | } |
| 67 | const float speed = luaL_optfloat(L, 1, 0.0f); |
| 68 | const float angVel = luaL_optfloat(L, 2, 0.0f); |
| 69 | forceControls(true, speed, angVel); |
| 70 | return 0; |
| 71 | } |
| 72 | |
| 73 | |
| 74 | int LuaControl::Fire(lua_State* L) { |
nothing calls this directly
no test coverage detected