781
Off Topic / Re: Think of a celebrity before clicking
« on: May 11, 2011, 08:23:25 PM »
Brad Pitt.
C:
C:
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
// Deletes all bricks with %bricktype as their datablock.
// @null
function deleteAll(%brickType)
{
// Did we supply a valid datablock?
if(isObject(%brickType))
{
%killList = "";
// Loop through all brickgroups.
for(%a = 0; %a < MainBrickGroup.getCount(); %a++)
{
%bg = MainBrickGroup.getObject(%a);
// Loop through every brick in this brickgroup.
for(%b = 0; %b < %bg.getCount(); %b++)
{
%brick = %bg.getObject(%b);
// Test if the bricktype of the selected brick
if(%brick.getDatablock().getID() == %brickType.getID())
{
// Add a field to our killList.
%killList = setField(%str, getFieldCount(%killList), %brick.getID());
}
}
}
// Loop through every field in the killlist.
for(%a = 0; %a < getFieldCount(%killList); %a++)
{
// Kill the brick.
%brick = getField(%killList, %a);
%brick.killBrick();
}
echo("Destroyed" SPC getFieldCount(%killList) SPC "Brick(s).");
}
}

Com, I know you are very protective of your sister, but you are being very overprotective from my view. I myself have a sister (13) that posts here but she is smart enough that I don't need to monitor her posts anymore.Who? BubbaGum?
no i mean the horse is starting to.... i'm saying i think of a person and a pony at the same time when i think of a stocking....
when ever i see that loving pony i think of that picture on the blockland cigarettes website, they are beginning to look alike...Wow, nice. Now you're saying they look like a horse. Clever boy!
it's funny because you seriously don't get sarcasmI am 99.9% sure at this point in time you are loving handicapped.