Need ghostable console object and associated datablock + dynamic fields
by David Hahnert · in Torque Developer Network · 10/31/2009 (12:08 pm) · 0 replies
I need an object which has:
(*) ghost able functionality
(*) able to be initialized in console
(*) has an associated datablock that can also be initialized in console
(*) can store dynamic fields.
Is there one similar to this in the engine already?
TSStatic objects don't seem to have datablocks.
I tried using the Item class in torque and it crashes whenever I initialize it.
//Code
datablock ItemData(Cross) { category = "Weaponry"; className = "Weapon"; shapeFile = "~/data/shapes/crossbow/ammo.dts"; mass = 1; elasticity = 0.2; friction = 0.6; emap = true; pickUpName = "a crossbow"; image = CrossbowImage; };
new Item(stabber) { dataBlock = "Cross";};
//End Code
And several attempts at making my own object has lead to a lot of engine crashing and "failed to initialize objects".
Please Advise.
(*) ghost able functionality
(*) able to be initialized in console
(*) has an associated datablock that can also be initialized in console
(*) can store dynamic fields.
Is there one similar to this in the engine already?
TSStatic objects don't seem to have datablocks.
I tried using the Item class in torque and it crashes whenever I initialize it.
//Code
datablock ItemData(Cross) { category = "Weaponry"; className = "Weapon"; shapeFile = "~/data/shapes/crossbow/ammo.dts"; mass = 1; elasticity = 0.2; friction = 0.6; emap = true; pickUpName = "a crossbow"; image = CrossbowImage; };
new Item(stabber) { dataBlock = "Cross";};
//End Code
And several attempts at making my own object has lead to a lot of engine crashing and "failed to initialize objects".
Please Advise.