Author Topic: Any command/addons to delete certain bricks and only those?  (Read 1085 times)

Title says all, Help meh!

define "certain bricks"

here's something chrono sent me
This will only work for the default colorset, and YOUR bricks.

%bg=localClientConnection.brickgroup; for(%x=0;%x<%bg.getCount();%x++){%b=%bg.getObject(%x);if(%b.getColorID() == 2){%b.setColliding(0);%b.setRayCasting(0);}}

All of that on one line.
to make this delete bricks of a color
%bg=localClientConnection.brickgroup; for(%x=0;%x<%bg.getCount();%x++){%b=%bg.getObject(%x);if(%b.getColorID() == 2){%b.killBrick();}}
where the 2 is the color (green), and this is entered into the console

I mean, i wanted to get rid of botholes, and specifically those.

Just disable botholes when starting up sever then?

Too much of a hastle imo, it takes quite some time for me to start servers.

It's not like you never restart server... Just disable it next time you start up.

I mean, i wanted to get rid of botholes, and specifically those.
%bg=localClientConnection.brickgroup; for(%x=0;%x<%bg.getCount();%x++){%b=%bg.getObject(%x);if(%b.isBotHole){%b.killBrick();}}

Too much of a hastle imo, it takes quite some time for me to start servers.

Really? That's lazier than me and my homework.

Unless you remove your entire addon list to update it for some reason, disabling/enabling 5 addons takes at most 40 seconds.

Either way it's not like you'll never have to restart the server (after 2-3 weeks maximum you will need to restart unless you like broken admin tools)