Yet another problem. block() this time. in Developer Help
|
|
I'm trying to make this rocket(new game, hehe) delete a nine-square grid around the object that the rocket bumps.
obj/rocket icon = 'tiles.dmi' icon_state = "missile" density = 1 Bump(obj/O) for(var/obj/Q in block(locate(O.x-1,O.y+1,O.z),locate(O.x+1,O.y-1,O.z))) del(Q) del(O) del(src)
|
It'll delete the object it bumps, but nothing around it.
runtime error: bad del
proc name: Bump (/obj/rocket/Bump)
source file: Vehicles.dm,963
usr: 0
src: the rocket (/obj/rocket)
call stack:
the rocket (/obj/rocket): Bump(Box (/obj/Box))
|