Author Topic: random brick remover  (Read 344 times)

probly impossible and unlikely, but just throwing it out there....
basically, a script that removes 5-10% of bricks in a build at random excluding baseplates, in the form of a cmd /removerandombricks.  idk, just an idea i had for rundown/broken down builds.

Do it yourself - it'll look much better, guaranteed, as you can fit it in with your style and it won't remove the main parts you expected to have detail or other supporting non-baseplate structures.

Code: [Select]
function serverCmdRemoveRandomBricks(%client)
{
%bg = %client.brickGroup;
for(%i=0;%i<%bg.getCount();%i++)
{
if(getRandom(0,100) < 11 && !%bg.getObject(%i).isBaseplate)
{
%bg.getObject(%i).delete();
$Server::BrickCount--;
}
}
messageAll('',"\c2" @ %client.name @ " has removed random bricks out of their build.");
}