Create Items
by Thomas Bang · in Torque Game Engine · 10/08/2008 (7:11 am) · 3 replies
Hi
I want to create a Item.
Now... if i want to place a item in the editor i get the following error message:
(0): Unable to find function ItemData::create
I want to create a Item.
datablock ItemData(myItemDB)
{
shapeFile = "~/data/shapes/3dtorquelogo/torque_logo.dts";
category = "MyItems";
};Now... if i want to place a item in the editor i get the following error message:
(0): Unable to find function ItemData::create
#2
I don't have TGE SDK here, but I do have the TGEA, and the method for TSStatic is in creater.ed.cs.
10/08/2008 (8:34 am)
When adding items through the editor, it looks for a create method. You need to write that method for new items you create and want to place through the editor. If you do a search on ::Create you should find where the other ones for like StaticShape and such are located. Just add one that creates an instance of your item.I don't have TGE SDK here, but I do have the TGEA, and the method for TSStatic is in creater.ed.cs.
#3
Tony
10/08/2008 (8:53 am)
Thomas, Have you followed the gettingStarted.pdf? It shows how to create a "TorqueLogoItem". The steps are the same for any item.Tony
Torque 3D Owner Thomas Bang