ID:146824
![]() Jan 18 2005, 9:00 pm
|
|
I cant get my monsters to attack players, any ideas? Players are mob/PC type. [Heres a sample of my attack procs] proc attacking() for(var/mob/PC/M in oview(4)) walk_towards(src,M,10) if(src.dir==1||src.dir==2||src.dir==4||src.dir==8) for(M in get_step(src,src.dir)) var/obj/O=new/obj/mob1weapon(get_step(src,src.dir)) O.dir=src.dir damagedealt = rand(1,src.attack) M.hp -= damagedealt M << "[src] Deals [damagedealt] to you!" M.death() sleep(2) del(O) else continue |
Copyright © 2025 BYOND Software.
All rights reserved.