Game Development Community

Throwing Items

by Nelson A. K. Gonsalves · in Torque Game Engine · 09/13/2001 (12:55 pm) · 8 replies

I remember seeing code to throw items at some post but I cant find it... does anyone remember where? The search wield no results...

#2
09/13/2001 (2:40 pm)
that was it! thanks Labrat!
#3
09/17/2001 (12:15 pm)
is this throw as in drop or throw as in chunk ? like could i make the weapon throw a bullet with this code? because i was under the impression that that particular engine was not working at the moment
#4
09/17/2001 (12:31 pm)
You probably could use this code to create a projectile. It would be a bit more work, but it could be done.
#5
09/17/2001 (1:40 pm)
You could use this to make a weapon throw objects. Normally weapons "throw" projectile objects instead of items, but the same principal.
#6
09/20/2001 (11:51 pm)
We are going to try this over the weekend. Nut I am wandering how different the projectile code is?
#7
09/21/2001 (1:57 am)
using the datablock

datablock Item(Thrown)
{
shapeFile="./thrown.dts";

};

in thrown.cs when the script runs, I get the console error "Unable to instantiate non-datablock class Item". Is there something special I need to do to identify a datablock?
#8
09/21/2001 (3:32 am)
Ok got it. ItemData is the actual datablock class for Item.