Overlay/Explosion Problem in Developer Help
|
|
Code:
obj Battle icon = 'Blasts.dmi' density = 1 Bump(atom/A) if(isobj(A)||isarea(A)) del(src) for(A in oview(A,src.splash_radius)) new/obj/Battle/Explosions/Fire(A.loc,A) Explosions Fire icon_state = "Explode" density = 0 layer = MOB_LAYER+3 mouse_opacity = 0 New(location,atom/O,icon/I = icon(src.icon,src.icon_state)) ..() if(isarea(O)) return world<<"\icon[I] added" O.overlays += I spawn(5) if(O) O.overlays -= I world<<"\icon[I] removed" if(istype(O,/turf/Different_Grasses/grass)) O.overlays += 'Destruction.dmi' spawn(600) if(O) O.overlays -= 'Destruction.dmi' del(src) return ..()
|
Problem description: Well, the problem with this is everything works but the only problem is the overlays removing from the turfs, they, however stick and are never removed. Anyone know a quick fix for this snippet?
|