Blockland Forums > Modification Help
Bricks Placed Differently?
(1/2) > >>
lilboarder32:
It seems to me that when manually creating bricks, they don't place correctly when .plant() returns an error (1 or higher). Using the same code, I created a brick on the ground, and floating in the air. The one on the ground worked perfectly, but the one in the air had no collision and none of my items could "hit" it. Here is the code I used to place both bricks:

--- Code: ---%temp = findClientByName(lil).player.tempBrick;
%brick = new fxDtsBrick()
{
   position = %temp.position;
   dataBlock = %temp.dataBlock;
   colorID = %temp.colorID;
   client = findClientByName(lil);
};
%brick.plant();
%brick.setTrusted(1);
%brick.isPlanted = 1;
%brick.client.brickGroup.add(%brick);

--- End code ---
The commands /clearBricks and /clearAllBricks still seem to work though.

This hasn't happened since V15 came out, and I'm just wondering if something was changed about creating bricks?
Amade:
I believe something was changed, the floating bricks created with a script I've made don't seem to be effected by tools.
lilboarder32:

--- Quote from: Amade on June 20, 2010, 01:42:52 AM ---I believe something was changed, the floating bricks created with a script I've made don't seem to be effected by tools.

--- End quote ---
Are you able to walk through them? I am, but it gets all choppy when I do.
Destiny/Zack0Wack0:
Badspot most likely implemented some sneaky trick that makes it so you can't correctly plant floating bricks. Or he did it unconsciously.
lilboarder32:

--- Quote from: Destiny/Zack0Wack0 on June 20, 2010, 02:24:36 AM ---Badspot most likely implemented some sneaky trick that makes it so you can't correctly plant floating bricks. Or he did it unconsciously.

--- End quote ---
It's not just floating bricks, it happens with buried, stuck, etc... Overlapping bricks act fine  when placed on the ground.
Navigation
Message Index
Next page

Go to full version