Author Topic: Spawning Brick?  (Read 968 times)

Tom

I need some help spawn a brick. I've tried this:

Code: [Select]

%temp = new fxDTSBrick()
{
datablock = "brick2x2FData";
Position = %posx SPC %posy SPC %posz;
rotation = "0 0 0 0";
colorid = "5";
scale = "1 1 1"
angleID = "0";
colorfxID = "0";
shapefxID = "0";

But it didn't work, am I forgetting something?

   
%temp = new fxDTSBrick()
   {
    datablock = "brick2x2FData";
     position = %posx SPC %posy SPC %posz;
    rotation = "0 0 0 0";
    colorid = "5";
    scale = "1 1 1"
    angleID = "0";
    colorfxID = "0";
    shapefxID = "0";
   };
Also make sure that %posx, %posy and %posz are set. This will spawn a temp brick - you need the plant functions to make it a 'real' brick.