diff options
author | Lars Müller <34514239+appgurueu@users.noreply.github.com> | 2022-01-27 22:22:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 22:22:58 +0100 |
commit | fe0b2d02bf07966ce4554578a1efd4b07bbb4734 (patch) | |
tree | 9f60414444efb632f6011787279a8aa0cf384f25 /doc | |
parent | 48e508052ad477eda1142f08990d523c8b9701ea (diff) | |
download | minetest-fe0b2d02bf07966ce4554578a1efd4b07bbb4734.tar.gz minetest-fe0b2d02bf07966ce4554578a1efd4b07bbb4734.tar.bz2 minetest-fe0b2d02bf07966ce4554578a1efd4b07bbb4734.zip |
Define control(bits) as "unset" for entities (#11995)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index e37567ec3..faaed55e1 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -6716,18 +6716,21 @@ object you are working with still exists. `aux1`, `sneak`, `dig`, `place`, `LMB`, `RMB`, and `zoom`. * The fields `LMB` and `RMB` are equal to `dig` and `place` respectively, and exist only to preserve backwards compatibility. + * Returns an empty table `{}` if the object is not a player. * `get_player_control_bits()`: returns integer with bit packed player pressed - keys. Bits: - * 0 - up - * 1 - down - * 2 - left - * 3 - right - * 4 - jump - * 5 - aux1 - * 6 - sneak - * 7 - dig - * 8 - place - * 9 - zoom + keys. + * Bits: + * 0 - up + * 1 - down + * 2 - left + * 3 - right + * 4 - jump + * 5 - aux1 + * 6 - sneak + * 7 - dig + * 8 - place + * 9 - zoom + * Returns `0` (no bits set) if the object is not a player. * `set_physics_override(override_table)` * `override_table` is a table with the following fields: * `speed`: multiplier to default walking speed value (default: `1`) |