Author Topic: Finding named bricks.  (Read 982 times)

One of the annoying things about allowing people to build with me is that they name random bricks for no reason and I can't find these bricks to clear them. We need something like a way to teleport to these bricks or something.

how would that work if multiple bricks are named the same thing

I've needed this so much in the past. If I had better knowledge of TorqueScript then I'd make a tool for this myself.


how would that work if multiple bricks are named the same thing

Could just have them emit beacons or something. There should also be some way to just cycle through the bricks, because even though they have the same name, they are still separate bricks.

Could just have them emit beacons or something.
that would work

Assuming you only wish to clear the names of these bricks, and that you know the name of the brick, you can enter this console command:
_nameofbrick.setNTObjectName("");
So for example, there's a brick named asd, you would do
_asd.setNTObjectName("");

I think _asd.setName(""); can also work, or is that not as efficient?

That wont update named brick lists in the event window.

There were a mod where if you highlighted someone's bricks through the admin menu you just teleport to them. If I could just teleport to a named brick's location I'll just figure out where the location of the brick is eventually.

you could enable the doPlayerTeleport/doPlayerTransform event and teleport to the bricks then?

also a mod that just teleports you to the players bricks on highlight doesn't make much sense - how would it determine what brick/where to teleport you to if the user has bricks in multiple locations?

you could enable the doPlayerTeleport/doPlayerTransform event and teleport to the bricks then?

also a mod that just teleports you to the players bricks on highlight doesn't make much sense - how would it determine what brick/where to teleport you to if the user has bricks in multiple locations?

It teleports you to the area where they have the most bricks.

you could enable the doPlayerTeleport/doPlayerTransform event and teleport to the bricks then?
exactly what I thought when I read this.

Also if there are multiple bricks, then just make a playsound relay loop, as long as you know the general area of them.
It teleports you to the area where they have the most bricks.
And teleporting a player to the mean location of a person's bricks could be problematic if they're spread far out, not to mention being hard to script.

onActivate > named brick > setcolor
onActivate > named brick > playsound
onActivate > named brick > spawnexplosion
onActivate > named brick > setplayertransform

literally any of these can solve your problem, if the bricks are under your ownership

if they're not, just save the build as yours and reload it. then you can use those events to find the named bricks.


And teleporting a player to the mean location of a person's bricks could be problematic if they're spread far out, not to mention being hard to script.

You just teleport to one brick at a time at random.