Added reg_anim_animate_and_move script function (closes #497)

This commit is contained in:
NovaRain
2023-12-27 13:18:52 +08:00
parent cfcc66ad1a
commit 7e47607781
7 changed files with 137 additions and 106 deletions
+8 -1
View File
@@ -254,7 +254,8 @@ FUNCTION REFERENCE
-----
##### `void reg_anim_animate_and_hide(object obj, int animID, int delay)`
- Exactly like `reg_anim_animate` but the object will automatically disappear after the last animation frame (but not destroyed).
- Works exactly like `reg_anim_animate` but the object will automatically disappear after the last animation frame (but not destroyed).
- `delay`: delay from the previous animation. A value of -1 will execute the specified animation immediately after the previous one in the sequence ends.
-----
##### `void reg_anim_light(object obj, int light, int delay)`
@@ -1127,6 +1128,12 @@ sfall_funcX metarule functions
**Optional argument:**
- `pos`: the position at which to start the search. If negative, it indicates a position starting from the end of the string
----
#### reg_anim_animate_and_move
`void sfall_func4("reg_anim_animate_and_move", object obj, int tile, int animID, int delay)`
- Plays the specified animation while simultaneously moving the object to the given tile
- `delay`: delay from the previous animation. A value of -1 will execute the specified animation immediately after the previous one in the sequence ends
****
_See other documentation files (arrays.md, hookscripts.md) for related functions reference._