turf
D
Enter(mob/M)
if(M.Pushed)
new/obj/Crater(M.loc)
del(src)
else
if(istype(M)&&M.Flying)
return 1
else
return 0
Problem description: The crater is forming too early, I think it's forming too early because the crater is formed earlier then the obj is deleted. The problem is that I can't put it after "del(src)" because it won't do anything. I tried changing:
new/obj/Crater(M.loc)
to
new/obj/Crater(src.loc)
but it just deletes a different turf and creates the crater over it. It doesn't do it on the wall that is hit. Any suggestions/fixes? Maybe a way to make the code more efficient?