Creating a datablock from script
by CodingChris · in Torque Game Engine · 12/26/2007 (12:04 pm) · 2 replies
Hi,
I simple want to create a datablock from script. My code:
I simple want to create a datablock from script. My code:
function setShape(%shape)
{
datablock(MyCar : DefaultCar)
{
shapefile = "Game/data/shapes/car/"@%shape@".dts";
};
}What's wrong here?About the author
#2
12/26/2007 (2:43 pm)
Thanks, silly misstake! I fixed it on my own now. I was trying to create the datablock.
Torque 3D Owner Ted Southard