mob/proc/ai_check()
for(var/mob/M in hearers(6))
if(M.NPC && !M.NpcActive)
var/playercheck = 0
M.NpcActive = 1
M.ai_random_wander()
mob/proc/ai_random_wander()
while(NpcActive)
walk_rand(src,10)//walk randomly with 5 lag
for(var/mob/M in hearers(6))//Check for players
if(M.client)
playercheck = 1
if(!playercheck)
NpcActive = 0
thats the full code if u need it
those r the two lines cuasing the error...
newwalking.dm:10:error: inconsistent indentation
newwalking.dm:12:error: bad argument definition