Game Development Community

End of Animation Sequence

by Calibre · in Torque Game Engine · 09/16/2005 (11:18 am) · 3 replies

What I do for Know end of Animation Sequence called by playCelAnimation or setActionThread???

Thanks

#1
09/17/2005 (6:42 pm)
I believe when a cel animation ends there is a script callback. You might want to run through the shapeBase and player c++ code to see what callbacks are exposed (grep for Con::execute and siblings).
#2
09/19/2005 (11:18 am)
Yes.... exist a callback called "onEndSequence" but don't work.... another suggestion?

and How do know when a audio play by playAudio already it finished??

sorry about my english...

ps. thanks Ben..
#3
10/18/2005 (6:16 am)
Use animationDone event instead.

in server/scripts/player.cs

function Armor::animationDone(%this,%obj)
{  
   // Inform the client
   if (isObject(%obj.client.player))
   { 
        echo("Armor::animationDone");
   }
}

;)