| 820 | |
| 821 | |
| 822 | static int PlaySound(lua_State* L) { |
| 823 | const int playerID = luaL_checkint(L, 1); |
| 824 | const char* sound = luaL_checkstring(L, 2); |
| 825 | fvec3 pos; |
| 826 | const float* posPtr = NULL; |
| 827 | if (lua_gettop(L) >= 5) { |
| 828 | posPtr = pos; |
| 829 | pos.x = luaL_checkfloat(L, 3); |
| 830 | pos.y = luaL_checkfloat(L, 4); |
| 831 | pos.z = luaL_checkfloat(L, 5); |
| 832 | } |
| 833 | lua_pushboolean(L, bz_sendPlayCustomLocalSound(playerID, sound, posPtr)); |
| 834 | return 1; |
| 835 | } |
| 836 | |
| 837 | |
| 838 | static int SendPlayerVariables(lua_State* L) { |
nothing calls this directly
no test coverage detected