Author Topic: Using Console to Give all of Your Bricks the same Brick Name  (Read 1381 times)


http://forum.blockland.us/index.php?topic=47039.0

That's not what I'm looking for, I want to give all the bricks in the server the same brick name.

That's not what I'm looking for, I want to give all the bricks in the server the same brick name.
I know, but that script should have the function for updating the named brick list. I didn't send to use it, just to reference it.
Here is Destiny's code:
Code: [Select]
registerOutputEvent(fxDTSBrick, "setBrickName", "string 32 200");
function fxDtsBrick::setBrickName(%this,%name,%client)
{
   if(%name $= "")
   {
      %this.setname("");
   }
   else
   {
      %this.setNTObjectName(%name);
   }
}

So I'm not completely sure, but it MAY be setNTObjectName, although the NT looks like "not" so thats throwing me off. Try using our methods but instead of setName use setNTObjectName. I'm not for sure about this.
« Last Edit: June 15, 2009, 05:39:23 PM by lilboarder32 »

Code: [Select]
      %this.setNTObjectName(%name);
Use this if setting it to nothing:

Code: [Select]
      %this.setname("");
From Destiny's code.

Bumpers, there must be a way D:

Bumpers, there must be a way D:
Yes, there is. We have already pointed it out. Try using:
Code: [Select]
%bg = findClientByName("Player's name").brickGroup; for(%i=0;%i<%bg.getCount();%i++){%bg.getObject(%i).setNTObjectName("brick name");}
Unless your setting them all to nothing, use:
Code: [Select]
%bg = findClientByName("Player's name").brickGroup; for(%i=0;%i<%bg.getCount();%i++){%bg.getObject(%i).setName("");}