Skip to content
Snippets Groups Projects
Commit ce8e389a authored by Claire Ellis's avatar Claire Ellis :speech_balloon:
Browse files

Add lua player.botleader and player.buttons_last (read+write)

parent e19b0856
No related branches found
No related tags found
1 merge request!1383Multiplayer Bot Features (aka AddPlayer)
......@@ -370,6 +370,10 @@ static int player_get(lua_State *L)
lua_pushboolean(L, plr->outofcoop);
else if (fastcmp(field,"bot"))
lua_pushinteger(L, plr->bot);
else if (fastcmp(field,"botleader"))
LUA_PushUserdata(L, plr->botleader, META_PLAYER);
else if (fastcmp(field,"buttons_last"))
lua_pushinteger(L, plr->buttons_last);
else if (fastcmp(field,"jointime"))
lua_pushinteger(L, plr->jointime);
else if (fastcmp(field,"quittime"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment