mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-31 18:31:04 +00:00
Fix some issues with animations, and allow non-looped animations to be defined
This commit is contained in:
parent
622918d8a8
commit
660fa516bf
10 changed files with 59 additions and 25 deletions
|
@ -2434,8 +2434,8 @@ This is basically a reference to a C++ `ServerActiveObject`
|
|||
* `set_wielded_item(item)`: replaces the wielded item, returns `true` if successful
|
||||
* `set_armor_groups({group1=rating, group2=rating, ...})`
|
||||
* `get_armor_groups()`: returns a table with the armor group ratings
|
||||
* `set_animation({x=1,y=1}, frame_speed=15, frame_blend=0)`
|
||||
* `get_animation()`: returns range, frame_speed and frame_blend
|
||||
* `set_animation({x=1,y=1}, frame_speed=15, frame_blend=0, frame_loop=true)`
|
||||
* `get_animation()`: returns range, frame_speed, frame_blend and frame_loop
|
||||
* `set_attach(parent, bone, position, rotation)`
|
||||
* `bone`: string
|
||||
* `position`: `{x=num, y=num, z=num}` (relative)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue