ID:179235
 
if you've been given a loc = locate(x,y,z), how do you destroy all objects in that map location?
var/a = locate(x,y,z)
for(var/obj/o in a)
del(o)

//for each /obj it finds in location x,y,z, delete it.
In response to Foomer
Works like a charm.

Foomer wrote:
var/a = locate(x,y,z)
for(var/obj/o in a)
del(o)

//for each /obj it finds in location x,y,z, delete it.