minetest/minetest_game

Allow overriding the loop flag on `player_api.set_animation`

Panquesito7 opened this issue · 0 comments

Description

Currently, I'd like to apply an animation to the player, but once it ends, just stop it there and not loop it anymore.
I know I could manually do this by using player:set_animation, but that'd also involve changing the collisionboxes and doing other checks, which I'd prefer if player_api does that.

Would be awesome if the player_api.set_animation function provides an optional parameter to override the loop flag, just like the animation speed. Let me know your thoughts about this.