Game Development Community

Adding a new weapon...

by Josiah Wang · in Torque Game Engine · 11/29/2003 (6:53 pm) · 6 replies

I know this might sound like an extremely obvious question, but heck, I'm a newbie, so cut me some slack please =)

Anyways, my question is, what is the entire process of adding a weapon, or even an item for that matter?

Many thanks!

#1
11/30/2003 (8:16 am)
I think we need more information what you gonna do ?
Have you done a new weapon and want to use it or ,
do you only want to place the existing rifle or crossbow ?
othervise its only todo this

start game
press f11
press f4 (world editor creator)
choose shapes
choose weapon
choose crossbow or rifle


-Billy
#2
11/30/2003 (1:29 pm)
I mean to add an entirely new weapon...
#3
12/02/2003 (2:45 pm)
Ok :)

Have you made the weapon ?
If you have, do you see it in the show tool ?
If you see it in the show tool
make a new script from the crossbow or change the crossbow
script.

If you change the crossbow script look after the lines below
and change the shapefile

datablock ItemData(Crossbow)

-> shapeFile = "~/data/shapes/yourweapon/yourweapon.dts";



datablock ShapeBaseImageData(CrossbowImage)

-> shapeFile = "~/data/shapes/yourweapon/yourweapon.dts";
#4
12/02/2003 (3:00 pm)
Oooooooooooooohhhh thanks dude!
#5
12/03/2003 (2:52 pm)
Hey Josiah, I just added a new tutorial to my website, which I think will help you a lot. The tutorial shows how to add a rocket launcher to a Torque game.

www.codesampler.com/torque.htm

I hope it helps.
#6
12/03/2003 (3:37 pm)
Thanks all! Really lovin' this place ^_^