Down_Sprayer
icon = 'turf.dmi'
icon_state = "spraydown"
objs = 1
New()
. = ..()
spawn()
Wander()
proc/Wander()
if(src.built == 1)
var/obj/a = new/obj/spell/spray/(src.loc)
var/b = SOUTH
var/c
while(a)
c = get_step(a,b)
for(var/mob/M in c)
step(M,SOUTH)
del(a)
for(var/obj/K in c)
if(K.opacity)
del(a)
step(a,b)
a.dmg -= 15
sleep(2)
if(!a.dmg)
del(a)
var/I = rand(20,60)
spawn(I)
Wander()
Problem description:
runtime error: Cannot read null.dmg
proc name: Wander (/obj/Build/Down_Sprayer/proc/Wander)
usr: Rick (/mob/characters/p2)
src: Down Sprayer (/obj/Build/Down_Sprayer)
call stack:
Down Sprayer (/obj/Build/Down_Sprayer): Wander()
Down Sprayer (/obj/Build/Down_Sprayer): Wander()
The sprayer shoots the water spray projectile out. It works fine untill it hits me. It does the desired effect but doesnt shoot out anymore.
Please help me if you can.
Lummox JR