mob/proc/Cast_Ice(mob/M in oview(5))
if(usr.MP>=10)
usr.MP-=10
M.overlays+=/obj/snow
sleep(100)
Lock(M)
M.overlays-=/obj/snow
M.overlays+=/obj/ices
sleep(200)
M.overlays-=/obj/ices
Unlock(usr)
That's my code but I get a runtime error that says cannot read null.overlays
any ideas?
ID:261505
May 21 2002, 2:00 pm
|
|
I would not advise using usr in a proc. It might be fine in a verb, but not a proc.