Game Development Community

Non-cicle IFL animation bug

by Vyacheslav Maltsev · in Torque Game Engine · 12/04/2007 (4:46 am) · 1 replies

Greatings, wise people!

Here's the problem:
I'm starting non-cicle IFL animation with playThread(0, "AnimName"). It plays well - no questions. BUT, then I try to play it once again by the same command - playThread(0, "AnimName") - no animation plays at all! Object gives no reaction! Script event "OnEndSequence" does not happening. By the way command playThread(0, "AnimName") returns TRUE - just like if animation started and everething is ok... But it's not!

Please help, wise people!

#1
12/04/2007 (11:21 pm)
Problem solved! Actually its neither problem nor a bug. Its all about network structure of Torque. My mistake was that I tried to start thread right after I stopped it. Torque just had no time to send stop command from Server to Client. From Torque's point of view it seems like thread never stopped at all!
So, all I have to do is give a little time to Torque. A several milliseconds. Thats enough.

Thanks for attention!