Code:
mob proc NonAggresiveLook() var/mob/new_char/M while(src) if(M in oview()) if(M.name in src.killlist) walk_to(src,M,3,4) if(M in oview(1)) step_towards(src,M) else sleep(rand(7,13)) step_rand(src) break else for(M in view(src)) break sleep(5) spawn(2) NonAggresiveLook()
|
Problem description:
Src walks to a target (M) until 3 block away from him. I just dont want him to walk Northwest, Northeast, Southwest and Southeast.Thank you so much for help!