Author Topic: Getting A Brick By It's Name  (Read 516 times)

I know you can do _Name_Of_Brick but that does not work if there are multiple bricks with that name.

What is the best way to get all bricks with a name that causes the least amount of lag?

do a for statement? thats the only way you could do it really, imo.

add them to a list of bricks with name once setNTObjectName gets called
Then you loop through less bricks

Each brickgroup contains a list of these bricks already.

brickgroup.NTnameCount
brickgroup.NTname[num]
brickgroup.NTObjectCount_[name]
brickgroup.NTObject_[name,num]