how to trigger animations in torque with out a player object?
by Phillip Dav · in Torque 3D Professional · 10/25/2011 (5:21 pm) · 8 replies
Hello everyone I'm kind of new to Torque 3D, but all I want to do is trigger a animation by pressing a key on the keyboard.
I guess I'm not starting in the correct places, I was looking at the default bind.cs and then I also looked at the player.cs. where should go from here...
I guess I'm not starting in the correct places, I was looking at the default bind.cs and then I also looked at the player.cs. where should go from here...
About the author
Recent Threads
#2
11/01/2011 (12:56 pm)
Animation on a player? On a static object? On a weapon?
#3
11/01/2011 (12:56 pm)
You're welcome.
#4
I think you might have been in the right area. Inside of default.bind.cs, you'll see several commands to server calls, which provides the easiest method to send a request to the server from a keystroke.
11/01/2011 (12:58 pm)
As Micheal asked, we could use a bit more information on exactly what you're trying to do. I think you might have been in the right area. Inside of default.bind.cs, you'll see several commands to server calls, which provides the easiest method to send a request to the server from a keystroke.
#5
http://www.garagegames.com/community/resources/view/14868
Also search for animation topics as well. The bind stuff is the appropriate location for code that works off a button. You should look at the binds for help menus or the console to see how those work.
11/01/2011 (5:44 pm)
I would start looking through this if you are fairly new:http://www.garagegames.com/community/resources/view/14868
Also search for animation topics as well. The bind stuff is the appropriate location for code that works off a button. You should look at the binds for help menus or the console to see how those work.
#6
11/02/2011 (6:39 pm)
I know exactly what he wants to know, but I'm keeping it a secret until he tells the rest of you what he wants to know....
#7
@the normal un-fun job to prepare for xmas.
Alright I'm now and got some time to work on this some more before after xmas..
to -> Mr. Carney thats where I've been looking and thats what makes it feel like it some piece information I'm not putting together that would allow me do this. (its like its just right there)
to -> Mr. Perry it would be on a static object..if thats the best way to do it.
to -> Mr. Ranft I would like to be able to drop a either a animated dts or .dae file and have it not animate until I press the assigned button on my control I'm using a basic pc gamepad that has the 1-8 button assignments.
and if I'm not explaining it correctly:
ex: pressing joystick button 1 will cause my animated jumping box.dae (or animated .dts what ever would be easier to do this with) that I imported into the engine and is also already placed in the game world will play the jumping animation as long as the joystick button 1 is pressed/held down.
11/14/2011 (9:03 am)
Thanks again to everyone who responded just had to go back working overtime @the normal un-fun job to prepare for xmas.
Alright I'm now and got some time to work on this some more before after xmas..
to -> Mr. Carney thats where I've been looking and thats what makes it feel like it some piece information I'm not putting together that would allow me do this. (its like its just right there)
to -> Mr. Perry it would be on a static object..if thats the best way to do it.
to -> Mr. Ranft I would like to be able to drop a either a animated dts or .dae file and have it not animate until I press the assigned button on my control I'm using a basic pc gamepad that has the 1-8 button assignments.
and if I'm not explaining it correctly:
ex: pressing joystick button 1 will cause my animated jumping box.dae (or animated .dts what ever would be easier to do this with) that I imported into the engine and is also already placed in the game world will play the jumping animation as long as the joystick button 1 is pressed/held down.
#8
GEMS # 2,9,30 & 31? because those are the ones I've reading..
again thanks everyone...
11/14/2011 (9:06 am)
oh yeah should I keep reading overGEMS # 2,9,30 & 31? because those are the ones I've reading..
again thanks everyone...
Torque Owner Phillip Dav