proc
Missile(obj/c , loc1 , loc2, speed = 10)
var/obj/i = new c.type
i.loc = loc1
walk_to(i,loc2,0,0,speed)
del i
Problem description:
I'm making my own Missile proc that works how I need it to, however I want walk_to to actually wait until it has completed before deleting i.
So I obviously tried this as well:
proc
Missile(obj/c , loc1 , loc2, speed = 10)
var/obj/i = new c.type
i.loc = loc1
while(!(i in loc2))
sleep(?)
step_to(i,loc2,0,speed)
del i
sleep(world.tick_lag)