Compare XY Position of one group/family with another group/family

Long story short, I have a lot of objects and instances of objects in group_obj_unit_grey and group_obj_tiles.

When I do the following, not a single tile changes to occupied.

When I do this, only the top most tile that has soldier sitting on it changes to occupied.

I need a way to compare the XY position of every instance within a group (or family) with XY position of every instance within a group (or family).

And no - I don’t want to accomplish this through collisions - as it has other complications.

I am not sure but
Now you are checking if Tiles X/Y = Units X/Y
Switch it
Check if Units X/Y = Tiles X/Y

I found this with object linking where using repeat for each and take into account
Actually matters which is 1st in condition
Maybe it is same for you

1 Like