summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-12-03 18:51:15 +0100
committerPilzAdam <pilzadam@minetest.net>2013-12-03 23:20:00 +0100
commit15be2659eae6da2c3807713eb6e068d8aa436423 (patch)
tree8c30131f868ca6a11389c4b0649e1d1980dfb8e6 /doc/lua_api.txt
parentd9de9f23d93a9a6fd8deccbbf3fce58aad5751a1 (diff)
downloadminetest-15be2659eae6da2c3807713eb6e068d8aa436423.tar.gz
minetest-15be2659eae6da2c3807713eb6e068d8aa436423.tar.bz2
minetest-15be2659eae6da2c3807713eb6e068d8aa436423.zip
Add sneak and sneak_glitch to set_physics_override()
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index f3240dd40..410998cc6 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1706,10 +1706,11 @@ Player-only: (no-op for other objects)
{jump=bool,right=bool,left=bool,LMB=bool,RMB=bool,sneak=bool,aux1=bool,down=bool,up=bool}
- get_player_control_bits(): returns integer with bit packed player pressed keys
bit nr/meaning: 0/up ,1/down ,2/left ,3/right ,4/jump ,5/aux1 ,6/sneak ,7/LMB ,8/RMB
-- set_physics_override(speed, jump, gravity)
+- set_physics_override(speed, jump, gravity, sneak, sneak_glitch)
modifies per-player walking speed, jump height, and gravity.
Values default to 1 and act as offsets to the physics settings
in minetest.conf. nil will keep the current setting.
+ sneak and sneak_glitch are booleans, default is true
- hud_add(hud definition): add a HUD element described by HUD def, returns ID number on success
- hud_remove(id): remove the HUD element of the specified id
- hud_change(id, stat, value): change a value of a previously added HUD element