Game Development Community

Newbie question: How to associate animation with "weapon fire

by Steve Howson · in Torque Game Engine · 09/02/2005 (3:18 pm) · 2 replies

Hi all!
I'm a TOTAL newbie.
I just purchased the indie license and have been reading postings, tutorials and Kenneth Finney's book.
I have to admit thought that I'm a little overwhelmed.
I have some programming experience, and SOME game development experience (worked on one isometric game) but no 3D game programming experience.

I have an idea for a small game to make while learning Torque, I always learn better if working toward a goal.
Here's my question:

The player is going to have a gun as a weapon, but several other weapons that are thrown (like grenades for example).
When the player has that weapon selected I don't want any weapon graphics to be displayed.
Then when the weapon is "fired" I want the character to play the animation of him throwing the item and have the item created when the arm gets to a certain point in the arc.

Now, would I be able to do something like that via scripting, or would that require modifying the engine?

I can't imagine what I want to do is THAT difficult, but I'm just feeling a bit overwhelmed and don't really know where to start.

I'm not necessarily looking for someone to tell me exactly how to do it, but if you could point me in the right direction as to what functions/methods to look at and whatnot I'd really appreciate it!

As I get something to show I'll give more details on the game, just working out the basics now.

Thanks for any and all help!

#1
09/02/2005 (3:42 pm)
You really should probably ask these kinds of things in the private forums for SDK owners, but
I'll give you a quick pointer for where to start looking at the script:

starter.fps/data/shapes/player/player.cs is the file where all animation files are loaded for the player

starter.fps/client/scripts/default.bind.cs is the file where all the player commands are defined, such as one that might enable you to throw a grenade or play an animation.
#2
09/02/2005 (4:31 pm)
Thanks for the info about the wrong forum...

I'll look into the two scripts, hopefully that'll at least give me a starting point. :)

Thanks!