For some reason, the AnimStateChanged event handler doesn't trigger when the unit's velocity changes using setVelocity. However, the AnimChanged and AnimDone event handlers work fine.
There should be no link between animation and velocity.
For some reason, the AnimStateChanged event handler doesn't trigger when the unit's velocity changes using setVelocity. However, the AnimChanged and AnimDone event handlers work fine.
There should be no link between animation and velocity.
player addEventHandler ["AnimStateChanged", {hint str _this}];
onEachFrame {player setVelocity [0,0,-5]};
You can try "animDone" and "animChanged" event handlers in step 1. But they work fine regardless of the velocity.