ID:139272
 
Code:
mob
proc
Quake_Effect(mob/M,duration,strength=1)
if(!M.client)return
spawn(1)
var/oldeye=M.client.eye
var/x
for(x=0;x<duration,x++)
M.client.eye = get_steps(M,pick(NORTH,SOUTH,EAST,WEST),strength)
sleep(1)
M.client.eye=oldeye


Problem description:
Gear Golem Effects System.dm:9:error: get_steps: undefined proc

any tips on how i should go about solving this error?
get_steps is not a built in proc, try get_step or get_step_rand
In response to Gunbuddy13 (#1)
thanks for the help because of you my problem was solved.
actually, you shouldn't be doing this at all. Use client.pixel_* to modify the focus. This provides a faster and easier way to jiggle the screen.

Ex:
shake()
client.pixel_x=4
sleep(2)
client.pixel_x=-2
sleep(2)
//this has been a single shake, loop the above section for mulitple shakes.
client.pixel_x=0 //return here when finished shaking



With this, the intensity and length of the shakes can be easily modified.
Just for reference, get_steps() is a common process included in several libraries.

You can get one implementation of it here: (cleanest I've seen so far)
http://www.byond.com/members/Jtgibson/forum?id=204#204

It's also included in this library: (which is most likely what the source of that code was using)
http://www.byond.com/developer/AbyssDragon/BasicMath
In response to Bravo1 (#3)
Thanks for the help but I had already corrected what I had wrong but I will try bravo1's way of doing it later on today