With that being said, here is the code if you are interested in that particular function. Good luck!
mob
computer_001
icon='mobcolor.dmi'
density=1
New()
src.red=rand(0,255);src.green=rand(0,255);src.blue=rand(0,255)
src.icon+=rgb(src.red,src.green,src.blue)
overlays+='moboutline.dmi';overlays+='mobeyes.dmi'
createcharacter(src)
sleep(30)
locatemob()
proc
locatemob()
var{xaxis;yaxis}
do
for(var/mob/M in oview(8))
xaxis=x-M.x
yaxis=y-M.y
if(xaxis>1 || xaxis<-1 || yaxis>1 || yaxis<-1)
step_to(src,M)
sleep(5)
while(xaxis>1 || xaxis<-1 || yaxis>1 || yaxis<-1)
Problem description: There is no problem! Anymore! If anyone would like their computer mob to walk up close to player and stop, here's the code! I tested multiple times. Everything should be in working order. Good luck!
"Move Ref in the direction Dir continuously. Each step will be preceded by Lag time of inactivity.
A call to a walking function aborts any previous walking function called on Ref. To halt walking, call walk(Ref,0).
This function returns immediately, but continues to process in the background."