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

Method GetShotLifeTime

src/lua/LuaCallOuts.cpp:2798–2805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2796
2797
2798int LuaCallOuts::GetShotLifeTime(lua_State* L) {
2799 const ShotPath* shot = ParseShot(L, 1);
2800 if (shot == NULL) {
2801 return luaL_pushnil(L);
2802 }
2803 lua_pushfloat(L, shot->getLifetime());
2804 return 1;
2805}
2806
2807
2808int LuaCallOuts::GetShotLeftTime(lua_State* L) {

Callers

nothing calls this directly

Calls 4

ParseShotFunction · 0.85
luaL_pushnilFunction · 0.85
lua_pushfloatFunction · 0.85
getLifetimeMethod · 0.80

Tested by

no test coverage detected