proc
Quake_Effect(mob/M,duration)
if(!M.client)return
spawn(1)
var/original=M.client.eye
var/a
for(a=0;a<duration,a++)
M.client.eye = get_step_rand(M)
sleep(1)
M.client.eye=original
Problem description:
When ever I use my technique, it gives me an error that says
"runtime error: Cannot read null.client
proc name: Quake Effect (/proc/Quake_Effect)
source file: magic.dm,81
usr: Alex (/mob)
src: null
call stack:
Quake Effect(null, null)
Alex (/mob): Exploding Tag()"