ID:151188
 
I need one for my chicken. hehe
Thank You Shane
I need one for my chicken. hehe

This is your lucky day... there's something built right into DM. Check out walk_rand in the Reference. Also see step_rand, if you want to do it one step at a time.
In response to Guy T.
Ok, I found the code and im haveing some errors.

Code:

mob/Chicken
icon='Chicken.dmi'
name="Killer Chicken"
density=1
New()
walk_rand(src,4)//line 46
..()

Errors:

Code.dm:46:error:src:duplicate definition
Code.dm:46:error:4:duplicate definition
In response to Guy T.
Ok, I found the code and im haveing some errors.

Code:

mob/Chicken
icon='Chicken.dmi'
name="Killer Chicken"
density=1
New()
walk_rand(src,4)//line 46
..()

Errors:

Code.dm:46:error:src:duplicate definition
Code.dm:46:error:4:duplicate definition
In response to Shane
Ok, I found the code and im haveing some errors.

Code:

mob/Chicken
icon='Chicken.dmi'
name="Killer Chicken"
density=1
New()
walk_rand(src,4)//line 46
..()

Could be an indentation problem. It should look like this:

mob/Chicken
icon='Chicken.dmi'
name="Killer Chicken"
density=1

New()
..()
walk_rand(src, 4)
In response to Guy T.
Thanx it works :)
In response to Shane
Hey!! I told you to indent that code! You know what we do around here to people who don't indent? No? Well, let's just say it's not pretty. We were picking junior mints out of that last guy for a month.

Z
In response to Zilal
LOL