GetEntitiesAroundEntity /Scene and entities

void GetEntitiesAroundEntity(ETHEntity@ entity, ETHEntityArray &out)

Copies into &out a handle to each entity contained in the buckets around entity's parent bucket. More about scene buckets.

Sample:

ETHEntity@ bomb = SeekEntity("bomb.ent");

ETHEntityArray entities;
GetEntitiesAroundEntity(bomb, entities);

for (uint t = 0; t < entities.Size(); t++)
    print(entities[t].GetEntityName() + " is around the bomb! Careful!");

This function seeks entities in the entity's parent bucket itself, and all eight buckets that touch its edges and corners.

This function is accumulative, which means &out won't be cleaned before more entities are inserted.