The title.
How would I use a script to spawn in a brick? I already tried this
%posx = 60;
%posy = 0;
%posz = 1;
%tmp = new fxDTSBrick()
{
datablock = "brick2x2Data";
position = %posx SPC %posy SPC %posz;
rotation = "0 0 0 0"; colorID = "1";
scale = "1 1 1"; angleID = "0";
colorfxID = "0"; shapefxID = "0";
isPlanted = 1;
};
It spawns the brick, but the physics are all crazy, you can't use tools on it, and you can't even get its ID.
How would I spawn a brick in that had all the properties of a regular brick?