Can't fire my weapon!! Please Help
by Andrew Lawson · in Game Design and Creative Issues · 08/01/2006 (8:52 pm) · 5 replies
I have searched as many of the forums that would allow and they have been helpful. My first issue was I couldn't get the shotgun in the player's hands. I searched the forums and found this:
http://www.garagegames.com/mg/forums/result.thread.php?qt=48114 (this is very helpful)
Second issue: Gun is in hands and can even be picked up as inventory. Now I am at the crossroads of getting the shotgun to fire. I tried to reverse engineer the tommygun from All-in-one 3D Game Programming and then I copied and pasted it into the game as an item and I could see the gun just fine but it would not fire. I looked in the console log for errors but it listed none.
The forums I have run across on this subject have either been missing parts or had conflicting objectives with other files/code.
If at all possible, does anyone have a resource they are willing to share front-to-back on how to:
1) Add a weapon
2) Allow the player to carry the weapon or pick it up
3) Allow the player to fire the weapon
4) List particles, ammo,etc. needed to make the process function
It would be greatly appreciated by not only me but I am sure a lot of other people as well. For the sake of not confusing others who need help on this subject please don't post letting me know that all I have to do is search. Every post I found had a few people posting remarks telling the person to search harder. I'm not whining...I am simply requesting. It's discouraging for those who are trying to find answers. Thank you.
http://www.garagegames.com/mg/forums/result.thread.php?qt=48114 (this is very helpful)
Second issue: Gun is in hands and can even be picked up as inventory. Now I am at the crossroads of getting the shotgun to fire. I tried to reverse engineer the tommygun from All-in-one 3D Game Programming and then I copied and pasted it into the game as an item and I could see the gun just fine but it would not fire. I looked in the console log for errors but it listed none.
The forums I have run across on this subject have either been missing parts or had conflicting objectives with other files/code.
If at all possible, does anyone have a resource they are willing to share front-to-back on how to:
1) Add a weapon
2) Allow the player to carry the weapon or pick it up
3) Allow the player to fire the weapon
4) List particles, ammo,etc. needed to make the process function
It would be greatly appreciated by not only me but I am sure a lot of other people as well. For the sake of not confusing others who need help on this subject please don't post letting me know that all I have to do is search. Every post I found had a few people posting remarks telling the person to search harder. I'm not whining...I am simply requesting. It's discouraging for those who are trying to find answers. Thank you.
About the author
#2
08/01/2006 (9:26 pm)
Looks very detailed and helpful. I will try this out tomorrow and hopefully success. Thank you for posting the link.
#3
08/02/2006 (8:13 am)
I was able to import a gun and fire the weapon. Last question I have is how do I specify rounds? It's firing semi automatic instead of automatic. (for a machine gun) Thanks.
#4
08/02/2006 (9:06 am)
That script is for a semi automatic guns post in a coding/scripting forum you need some more lines of script to do a full auto weapon
#5
08/10/2006 (9:27 am)
Why does the reload happen after each shot? This causes the reload sound to be played after each shot. Can't you specify the amount of shots fired before reloading?
Torque Owner Dave MacIsaac
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9230