ID:147800
 
I stumbled upon range and orange just a bit ago, but even using that causes some odd deletion patterns. I can't get it to delete every object within one square of it.
obj/missile
icon = 'tiles.dmi'
icon_state = "missile"
density = 1
Bump(obj/O)
for(var/obj/Q in range(1,O))
del(Q)
del(src)
Enigmaster2002 wrote:
I stumbled upon range and orange just a bit ago, but even using that causes some odd deletion patterns. I can't get it to delete every object within one square of it.

The problem is that the missile is deleting itself, cutting the proc short. Instead of del(Q) I'd put in this line:
if(Q != src) del(Q)
Or, you can just subtract src from range(1,O). Either way will work.

Lummox JR