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
ID:1661656
Aug 18 2014, 10:23 pm (Edited by moderator on Aug 19 2014, 1:11 pm)
(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!
|