| 1889 | |
| 1890 | |
| 1891 | int LuaCallOuts::GetLocalPlayerTarget(lua_State* L) { |
| 1892 | const LocalPlayer* myTank = LocalPlayer::getMyTank(); |
| 1893 | if (myTank == NULL) { |
| 1894 | return luaL_pushnil(L); |
| 1895 | } |
| 1896 | const Player* target = myTank->getTarget(); |
| 1897 | if (target == NULL) { |
| 1898 | return luaL_pushnil(L); |
| 1899 | } |
| 1900 | lua_pushinteger(L, target->getId()); |
| 1901 | return 1; |
| 1902 | } |
| 1903 | |
| 1904 | |
| 1905 | int LuaCallOuts::GetLocalTeam(lua_State* L) { |
nothing calls this directly
no test coverage detected