ID:1661656
 
(See the best response by FKI.)
Not sure what I did wrong I didn't copy and past it but maybe I missed something ive looked it over and looked it over but I cant see what I did wrong so figured a new pair of eyes would help!
mob/Enemies/proc/CombatAI()
while(src)
for(var/mob/Player/M in oview())
if(get_dist(src,M)<=1)
src.dir=get_dir(src,M)
src.Attack()
else
step_to(src,M)
break
sleep(rand(4,8))


enemies.dm:24:error: M: undefined type: M
enemies.dm:25:error: M: undefined type: M
enemies.dm:26:error: M: undefined type: M
enemies.dm:29:error: M: undefined type: M
enemies.dm:24:warning: M: variable defined but not used
Turtorial.dmb - 4 errors, 1 warning
Best response
/mob/Player is not a valid type. You have to define it somewhere like so:

mob/Player
// Variables and procs usually follow suit.
aaaa I see thank you ^^