Game Development Community

SetActionThread randomly stops working

by Caleb · in Torque Game Engine · 07/05/2006 (4:24 pm) · 5 replies

I was useing setActionThread inside onReachDestination to play an attack animation when my NPC was in range of my character. Everthing worked fine the first 3 or 4 times, but now it doesn't work at all. I just need to know if anyone else has had this problem and if there is a fix.

#1
07/05/2006 (6:49 pm)
Well, it works (for now at least). In the mean time does anyone know how to play playable character animations? useing setAction thread doesn't seem to work with the main player.

Thanks.
#2
07/05/2006 (6:55 pm)
If it's not a blend animation and the player is moving, you'll have to look into source code to figure out how you want to implement it. It depends what kind of animations and where you need to be playing them.
#3
07/05/2006 (7:08 pm)
Hmmm, whats the difference between blend sequence and normal?
#4
07/05/2006 (8:37 pm)
Blend sequences are played additively over the top of normal animations, so the engine doesn't care if they are playing. Normal animations set from script are usually overiden by the stock player code that will always try to use the hardcoded movement animations unless you're doing anything but standing still pretty much.
#5
07/06/2006 (6:12 am)
For an attack animation for my main character, the same as my AI Guy, what should I use and how do I use it?