Problem with playThread setActionThread on a player object
by Guimo · in Torque Game Engine · 05/26/2008 (5:52 pm) · 10 replies
Hi everybody,
Here i have another problem, I hope somebody has solved this one.
I have an AIPlayer object. When I requesto the player to move from one place to other, the player runs fine. Then I request it to salute but hold the position like:
%gameunit.setActionThread("celsalute", true);
The unit salutes and then stands in the last frame. But after that if I request the unit to move to other position, the run animation just wont run, the animation is stuck in the last frame of the celsalute animation.
I dont know if anybody has found this before. Id appreciate any hint on this one.
Luck!
Guimo
Here i have another problem, I hope somebody has solved this one.
I have an AIPlayer object. When I requesto the player to move from one place to other, the player runs fine. Then I request it to salute but hold the position like:
%gameunit.setActionThread("celsalute", true);
The unit salutes and then stands in the last frame. But after that if I request the unit to move to other position, the run animation just wont run, the animation is stuck in the last frame of the celsalute animation.
I dont know if anybody has found this before. Id appreciate any hint on this one.
Luck!
Guimo
About the author
#2
11/10/2009 (5:58 am)
Is "celsalute" a blended animation?
#3
11/10/2009 (11:39 am)
Do you not have to reset the root animation after something like this?
#4
%player.setActionThread("stance", true);
and then:
%player.setActionThread("root");
but the player is still hold the stance animation.
Are there any special request to the DSQ?
Thanks for your help!
11/10/2009 (9:37 pm)
Its not a blended animation and no cycle.I first use:%player.setActionThread("stance", true);
and then:
%player.setActionThread("root");
but the player is still hold the stance animation.
Are there any special request to the DSQ?
Thanks for your help!
#5
11/10/2009 (10:02 pm)
A quick glance at what you just posted and one has "true" and one doesn't. Who knows, maybe it's that simple, try it.
#6
11/11/2009 (9:52 pm)
Thanks for your reply.unfortunately it doesn't work too. Otherwise,I don't want the player hold the root animation, so I can't set true.
#7
%player.setActionThread("celsalute", true);
Then before you initiate the walk again, try something like this...
%player.setActionThread("pain"); (or whatever anim you feel like trying)
11/11/2009 (10:20 pm)
Try resetting the anim before you wish to move by firing another animation first?%player.setActionThread("celsalute", true);
Then before you initiate the walk again, try something like this...
%player.setActionThread("pain"); (or whatever anim you feel like trying)
#8
11/13/2009 (1:29 am)
I have tried this, but it doesnt work.Its a real grief.
#9
11/13/2009 (2:54 am)
Somebody told me that use the MAYA creat DSQ must have some problem, is that true?
#10
12/06/2009 (11:23 pm)
I have resolve the problem now. I find that I must use schedule function to wait for a little time until the animation done, and then I can use setActionThread function to change the animation.
zhuzhibing