for(%a = 0; %a < 100; %a++)
{
if(!isObject(%vehicleDataBlock[%a]))
{
datablock WheeledVehicleData(VPEditedVehicle : %vehicleDataBlock)
{
//filler until I'm ready to fill this space so I don't get an error
category = "Vehicles";
displayName = " ";
shapeFile = "./carpet.dts"; //.dts File
emap = true;
mass = 200;
drag = 1.7;
density = 4;
};
VPEditedVehicle.setName(%vehicleDataBlock[%a]);
return;
}
}
So I'm trying to tell this datablock to inherit the properties of a datablock whose name is stored in the variable "%vehicleDataBlock" but it doesn't seem to like variables there. I had the same problem with the name of the datablock as well but I got around that by putting
VPEditedVehicle.setName(%vehicleDataBlock[a]);
after I created it. Unfortunately there is no such thing as "setInheritedDataBlock();"