Ability to get and set animation length on mesh animations

You can play animations on supported meshes with self:GetEntity():PlayAnimation(animName)

However, you can’t tell how long that animation will be, through Lua. You also can’t change its duration, for example if you wanted a door to open more slowly for some drama in your game, or a chest to slam shut quickly.

This feature requests suggests additional Lua API around playing mesh animations, that can include setting their speed, and getting how long they last for. Note that some animations, such as Active on a fan, are looping, so it would be useful to be able to know this through Lua as well.

Votes on original board: 5

1 Like