mob
verb
test_smoke()
src<<"Creating smoke."
src.SmokeSpawn(5,2)
proc
SmokeSpawn(time,delay)
while(time>0)
var/obj/smoke/C=new(src)
C.owner=src
time--
sleep(delay)
obj
var/owner=""
smoke
icon='smoke.dmi'
opacity=1
layer=MOB_LAYER+1
New()
spawn(80)
del(src)
src.Moverand()
..()
proc
Moverand()
if(src)
step_to(src,src.owner,3)
sleep(4)
src.Moverand()
Problem description:
When i test the code the smoke doesnt get created. I'm probably doing this the wrong way either way so i thought id ask for the best way to do this with minimal lag.