PlayThread and reset
by Stephen Sinclair · in Torque Game Engine · 04/06/2007 (2:28 pm) · 1 replies
I have a BOT that runs around and when it collides with my player, I would like both to fall down and reset the client controlled player's death animation after 5000 ms. The way I am doing it now is through the bot's collision method where I play an animation from DSQ on the DTS object by doing this %col.playThread(1,"death1"); and calling the same for %obj in the same method. The animated sequence runs and everybody falls. Only problem, is my player is lying flat at the end of the animation as is the bot's but I can still move my player around while still lying down(last frame in "death1"). kinda funny, but I need to stop the "death" animation and get the player's regular DSQ sequences to work properly after the animation is complete. If i shedule a stopThread in 5,000 ms, the regular animation sequences for when my player starts running do not work well. The player runs but the sequence doesn't seem to be working since the feet on walking backward are not moving...strange. Any ideas on how I should be playing the death sequence and getting the thread canceled and the DTS's DSQs functioning after the "death" threadPlay?
Thanks!
Steve
Thanks!
Steve
Torque Owner Stephen Lujan