Author Topic: [SOLVED] How to make a brick group  (Read 937 times)

I know there are topics on this already but none of them helped me

I'm trying to make a brick group for my game

Code: [Select]
$brick_group = new SimGroup(BrickGroup_1337 : BrickGroup_888888)
{
    bl_id = "1337";
    isPublicDomain = 0;
};
mainBrickGroup.add($brick_group);

%brick = new fxDTSbrick()
{
    datablock = "brick4cube1data";
    position = "60 10 0";
    angleID = "0";
    rotation = "0 0 0 0";
    scale = "1 1 1";
    colorID = 1;
    printID = 1;
    colorFxID = "0";
    shapeFxID = 0;
    isPlanted = 1;
};
%brick.plant();
$brick_group.add(%brick);

and it spawns the brick but I can't collide with it and I can't use tools on it
« Last Edit: August 12, 2016, 10:57:39 PM by KozzyMoto »

By the looks of it you're missing some BLB formatting for your brick.  This link should help you add collision to your brick.
https://forum.blockland.us/index.php?topic=53716.0

Quote
By the looks of it you're missing some BLB formatting for your brick.  This link should help you add collision to your brick.

That's not the problem
brick4cube1data is from a default brick pack, Modter4xPack or something

You can't place a brick at z=0, it's half inside the ground.
Bricks also don't have a scale parameter.