[quote="thoughtzone":3k6zl90s]i think you should use the RST behavior instead of the bullet one and for the chance code you can use the random command and you should also create function witch is going to tell the behavior of your A.I. and use random time interval to make them do something
pick a random "creature"
if not "sleeping"
if not "eating"
every random(10000)+5000 set the private variable of it to random(3)
if 0 then call function "sleep"
if 1 then call function "go"
if 2 then call function "eat"
and create your function like
wait 20 000 ms
then call the function "go"
move toward food.x.y
wait 5000 ms
than call "go"
move toward random(640) random(480) "if your layer is 640,480)
something along those line ...[/quote:3k6zl90s]
Thanks that worked fine, took awhile to adapt to my existing LoS detection and hunger variable but its worked out just fine,
Thanks a lot.