aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>2013-04-05 01:03:28 -1000
committerPilzAdam <pilzadam@minetest.net>2013-04-05 02:00:59 +0200
commitc5a8448c41e4ea9d33a43cebef61425d4568a46d (patch)
treebd612dd0d2b8e7589f14a2c403b423480af5798d /doc
parent2a0badf2d565ce4bebe2910c88795c0fe51a0341 (diff)
downloadminetest-c5a8448c41e4ea9d33a43cebef61425d4568a46d.tar.gz
minetest-c5a8448c41e4ea9d33a43cebef61425d4568a46d.tar.bz2
minetest-c5a8448c41e4ea9d33a43cebef61425d4568a46d.zip
Allow modifying movement speed, jump height and gravity per-player via the Lua API.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 029c84d03..a61ffce64 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1348,6 +1348,10 @@ 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)
+ 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.
InvRef: Reference to an inventory
methods: