anim victory also for npcs

I have two questions:
1) Why Kassar starts the animation from the first frame if there is written " if(frame >= 2)" ?
2) Why there is loop 1 2 4 instead of loop 0 ?

1) Kassar or any entity will start animation from first frame naturally. And that has nothing to do with the script.
2) Ilu has given the first half of the answer, the second half of the answer is : Kassar need to perform first and second frame to show his victory animation. The remaining frames are looped and played to wait for victory state to be ended. Ending the animation is the purpose of the script.
 
1) Kassar or any entity will start animation from first frame naturally. And that has nothing to do with the script.
2) Ilu has given the first half of the answer, the second half of the answer is : Kassar need to perform first and second frame to show his victory animation. The remaining frames are looped and played to wait for victory state to be ended. Ending the animation is the purpose of the script.
Thank you.
 
@Bloodbane Hi, in my new game there is a level where the boss when dies transforms into another entity. I would like the victory animation to trigger when this latter entity dies. Is it possible?
 
It is doable but you need to move BossDed spawn from item drop to the transformed boss's DEATH animation.

Hmmm.... there is a way without moving that but might need extra script work.
 
Back
Top Bottom