http://youtu.be/5WUAZjovTuw
Here is the ai for my mob:
proc
Watching()
for(var/mob/m in oview())
if(m.client)
target = m
AI()
while(src)
stop()
if(target)
dir = get_dir(src,target)
if(bounds_dist(src,target) > 8)
move_to(target)
else
target << "OK"
stop()
sleep(4)
else
Watching()
sleep(5)
The worst part is the line they make in the video. The mob disappears if walk outside the map but I just need to make a black dense turf and countour my map.
Maybe the library's pathfinding is dumb or my code is too simple, idk...
Help!