From cf64054390970f3cf974afb2b174340a3e1da382 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Tue, 16 Jul 2019 14:00:42 +0200 Subject: Implement adding velocity to player from Lua The intended usecase is knockback, but there's potential for more. --- src/script/lua_api/l_object.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/script/lua_api/l_object.h') diff --git a/src/script/lua_api/l_object.h b/src/script/lua_api/l_object.h index 653d833f6..2390c5195 100644 --- a/src/script/lua_api/l_object.h +++ b/src/script/lua_api/l_object.h @@ -212,6 +212,9 @@ private: // get_player_velocity(self) static int l_get_player_velocity(lua_State *L); + // add_player_velocity(self, {x=num, y=num, z=num}) + static int l_add_player_velocity(lua_State *L); + // get_look_dir(self) static int l_get_look_dir(lua_State *L); -- cgit v1.2.3