Author Topic: Efficiently looping through all bricks with the same name  (Read 618 times)

I need an efficient method that collects all bricks with the same name on a server without causing lag.

How do wrench events manage to call a function on bricks of the same name without causing lag?

Thanks in advance

brickgroups store name information if names are set correctly (which i imagine they should be)

relevant variables:
group.NTNameCount - count of different names in the brickgroup
group.NTName[index] - name in the brickgroup at specified index
group.NTObjectCount[name] - count of bricks with the specified name in the brickgroup
group.NTObject[name, index] - brick in the brickgroup with the specified name at the specified index

note that names begin with _ as would the object names
« Last Edit: April 17, 2015, 07:52:55 PM by otto-san »