diff options
author | Anand S <ClobberXD@gmail.com> | 2018-07-15 05:56:30 +0530 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-09-19 20:14:16 +0200 |
commit | 47da640d7763ee1e00badb7476ac5afc4f864367 (patch) | |
tree | d12bee2e2cfc1b1c4a4a51e318d692b11ee5fbaf /doc | |
parent | 5c9983400fb085167bf11f8a0483b8e8f6dd8a24 (diff) | |
download | minetest-47da640d7763ee1e00badb7476ac5afc4f864367.tar.gz minetest-47da640d7763ee1e00badb7476ac5afc4f864367.tar.bz2 minetest-47da640d7763ee1e00badb7476ac5afc4f864367.zip |
Add support for per-player FOV overrides and multipliers
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 5a991c278..4eb9c797c 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -5580,12 +5580,21 @@ This is basically a reference to a C++ `ServerActiveObject` `set_look_vertical`. * `set_look_yaw(radians)`: sets look yaw - Deprecated. Use `set_look_horizontal`. -* `get_breath()`: returns players breath -* `set_breath(value)`: sets players breath +* `get_breath()`: returns player's breath +* `set_breath(value)`: sets player's breath * values: * `0`: player is drowning * max: bubbles bar is not shown * See [Object properties] for more information +* `set_fov(fov, is_multiplier)`: Sets player's FOV + * `fov`: FOV value. + * `is_multiplier`: Set to `true` if the FOV value is a multiplier. + Defaults to `false`. + * Set to 0 to clear FOV override. +* `get_fov()`: + * Returns player's FOV override in degrees, and a boolean depending on whether + the value is a multiplier. + * Returns 0 as first value if player's FOV hasn't been overridden. * `set_attribute(attribute, value)`: DEPRECATED, use get_meta() instead * Sets an extra attribute with value on player. * `value` must be a string, or a number which will be converted to a |