https://www.leadwerks.com/learn?page=API-Reference_Object_Entity_PlayAnimation
The first value refers to the name of the animation or its respective number in sequence.
The second value is the speed, this doesn't really agree with my modeling program, and I think it's especially due to the keyframes marked in the animation so it's time to look for a calculation that matches the engine.
In the third value, is the speed with which you change between animations, a default value is 500, but I use 100 milliseconds, which implies that the transition between animations is smooth.
A fourth value, is by default the number zero, this implies that the animation is reproduced in a cycle where when arriving to the last keyframe it returns to the first one, if the value of the number 1 is put to the animation they are reproduced in a single shot, it is not a cycle and it is then when we can resort to the script in Script EndAnimation(), where the number of that sequence is returned when that animation finishes.