getAnimationDuration.lua 583 B

12345678910111213141516171819202122232425
  1. return {
  2. summary = 'Get the duration of an animation in the Model.',
  3. description = 'Returns the duration of an animation in the Model, in seconds.',
  4. arguments = {
  5. name = {
  6. type = 'string',
  7. description = 'The name of the animation.'
  8. },
  9. index = {
  10. type = 'number',
  11. description = 'The animation index.'
  12. }
  13. },
  14. returns = {
  15. duration = {
  16. type = 'number',
  17. description = 'The duration of the animation, in seconds.'
  18. }
  19. },
  20. related = {
  21. 'Model:getAnimationCount',
  22. 'Model:getAnimationName',
  23. 'Model:animate'
  24. }
  25. }