Skip to content

Commit

Permalink
Improve set_texture_mod documentation (#10339)
Browse files Browse the repository at this point in the history
Properly documents the select_x_by_camera values
  • Loading branch information
karamel59 committed Aug 27, 2020
1 parent d052593 commit 1eaff3d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/lua_api.txt
Expand Up @@ -6100,6 +6100,9 @@ object you are working with still exists.
* `set_yaw(radians)`: sets the yaw (heading).
* `get_yaw()`: returns number in radians
* `set_texture_mod(mod)`
* Set a texture modifier to the base texture, for sprites and meshes.
* When calling `set_texture_mod` again, the previous one is discarded.
* `mod` the texture modifier. See [Texture modifiers].
* `get_texture_mod()` returns current texture modifier
* `set_sprite(p, num_frames, framelength, select_x_by_camera)`
* Specifies and starts a sprite animation
Expand All @@ -6110,6 +6113,12 @@ object you are working with still exists.
* `framelength`: Time per animated frame in seconds, default: `0.2`
* `select_x_by_camera`: Only for visual = `sprite`. Changes the frame `x`
position according to the view direction. default: `false`.
* First column: subject facing the camera
* Second column: subject looking to the left
* Third column: subject backing the camera
* Fourth column: subject looking to the right
* Fifth column: subject viewed from above
* Sixth column: subject viewed from below
* `get_entity_name()` (**Deprecated**: Will be removed in a future version)
* `get_luaentity()`

Expand Down

0 comments on commit 1eaff3d

Please sign in to comment.