Game Development Community

How to pause an animation started by setActionThread?

by weihua · in Torque 3D Professional · 06/27/2010 (11:58 pm) · 6 replies

e.g. if a bot is running. I shoot it with a freezing bullet.
I want the bot's animation also freeze at the time it is hit.
I can not find function like pauseThead to pause an animation started by setActionThread.
Anyone can give me a direction? Thanks a lot!

#1
06/28/2010 (1:37 am)
You could setThreadTimescale(slot, 0) to pause and setThreadTimescale(slot, 1) to continue the animation forward. There are other ways I think, but they all boil down to this.
#2
06/28/2010 (6:23 pm)
Thank you Konrad. But can setThreadTimescale affect actionthread?
I think there is no slot for action thread.
setThreadTimescale(slot, 0) may be as same as pauseThread(slot).
I still don't figure out how to pause an animation started by setActionThread, not playthread.
#3
06/29/2010 (2:36 am)
Oh, right, sorry about that, weihua, I wasn't paying enough attention to your post.
#4
06/29/2010 (5:34 pm)
That's OK. Still thanks for your answer :-)
#5
06/29/2010 (6:18 pm)
I would think you would want to extend your play sequences and threads. Perhaps you could see if the plastic gem about animation threads applys to you?
#6
06/29/2010 (10:15 pm)
Thank you JesseL.
I just want to know if T3D engine offer such a function like pause the animation started by setActionThread. Because all move actions are played by setActionThread. I want to know if there is some way to pause such animations.