%this = new StaticShape(){ rotation = "1 0 0 90"; scale = "0.6 5 0.6"; position = 0 0 0; canSetIFLs = "0"; datablock = "Whatever"; indestructable = true; };
First of all you need to create the datablock for the shape and set its shapeFile to your model. Then use your above code to actually create the object.
What I'm wanting to know is what class to create the datablock under.
staticShapeData.
To detect when it's hit with a projectile do I just do function staticShapeData::onProjectileHit? If so what are the vars for it?
It's better to do yourDB::onProjectileHit
Not in my case. It will check for a certain property in the static object and I don't wanna make a new function for each static object.
Umm. How do I give it collision?
That's something you do in the DTS model.
*facepalm*
Don't be dumb. This is coding help, not model help