#D-Cuboids - define max <[entity].bounding_box.last> - define min <[entity].bounding_box.first> - define max10 <[max].mul[10]> - define min10 <[min].mul[10]> - define cuboid |<[min]>]> - define cuboidx10 |<[min10]>]> - define cuboidentities <[cuboid].list_entities.exclude[]> #D-Entities - foreach <[cuboidentities]> as:entityhit: - define location10 <[entityhit].location.mul[10]> - if <[location10].is_within[<[cuboidx10]>]>: - define entities:<-:<[entityhit]> # Actually use definitions: - if <[entities].size> > 1: - hurt <[entities]> 1 - hurt <[entity]> 1