Reload animation
by Vincent D · in Torque Game Engine · 02/22/2006 (1:20 pm) · 16 replies
Hello,
I've got a reload function for my guns and when reloading I call
%obj.setActionThread("reload");
where %obj is the player. But as soon as I start moving the reload animation stops. how would I prevent this? I want the animation to continiue even while the player is running (, flying, kicking ass or whatever)
I've got a reload function for my guns and when reloading I call
%obj.setActionThread("reload");
where %obj is the player. But as soon as I start moving the reload animation stops. how would I prevent this? I want the animation to continiue even while the player is running (, flying, kicking ass or whatever)
#2
He means the player itself has a reload animation and when it is played, and he moves, the animation stops. I'd like to know this too.
02/22/2006 (1:48 pm)
Not that Eric, that's just altering an image's animation state. He means the player itself has a reload animation and when it is played, and he moves, the animation stops. I'd like to know this too.
#3
02/22/2006 (1:49 pm)
Yea....this is useless for me
#4
http://www.garagegames.com/mg/forums/result.thread.php?qt=33157
My memory says its called SetArmThread but it may be wrong.
02/22/2006 (1:50 pm)
You could try setarm described in this threadhttp://www.garagegames.com/mg/forums/result.thread.php?qt=33157
My memory says its called SetArmThread but it may be wrong.
#5
02/22/2006 (1:54 pm)
Ill give it a try
#6
02/22/2006 (1:56 pm)
Ah yeah, we have to do it the same way weapon holding positions are handled, blend animations, except instead of setArmThread, playThread.
#7
02/22/2006 (1:56 pm)
Ok now my animation is a loop and the player is hoping around LOL but I am getting closer :-) thank you
#8
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5377
You'll want to rip out the Player code additions that have todo with setArmThreadPlayOnce, and use that function to call your reload animation.
02/22/2006 (1:56 pm)
I think what you're looking for can be found in this resource.www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5377
You'll want to rip out the Player code additions that have todo with setArmThreadPlayOnce, and use that function to call your reload animation.
#9
02/22/2006 (1:59 pm)
That might just work ;-)
#10
I'm going to hopefully arrive at the same problem soon so, this is going help to me too.
02/22/2006 (1:59 pm)
@Vincent, Ahh okay, sorry about the useless link:( I'm going to hopefully arrive at the same problem soon so, this is going help to me too.
#11
02/22/2006 (2:00 pm)
Well no problem thanks anyway for your help
#12
02/22/2006 (2:23 pm)
Ok I've got it working, I used the setArmThreadPlayOnce code from the melee resource lik Josh suggested, thank you all
#13
02/22/2006 (2:41 pm)
Awesome, glad it worked out.
#14
@Vincent, can you post here how you solved it..?? thanks
06/29/2010 (1:10 am)
i was implemented the part of melee resource to get player play reload animation, but when i trigger the player to play, why the engine crash,@Vincent, can you post here how you solved it..?? thanks
#15
06/29/2010 (1:16 am)
@Yadhi Aditya P: I have not seen Vincent D around the forums for many many months, you may have better luck starting a new thread and posting the details of your problem.
#16
06/29/2010 (5:35 am)
@Yadhi: If the function is crashing whenever you try to call it then I would check the sourcecode, also I would ask in the resource where you acquired the function since other people may have had the same problem before.
Torque Owner Eric Johnson
Hope that helps....