ID:177051
![]() Nov 13 2002, 11:53 am
|
|
Hmmm... I'm not quite sure what code would be useful in allowing enemies to fight back and attck... Would anyone be willing to please help me out with this?
|
hmmm... well, I comprehend some of what you said but I'm not exactly sure what I need to enter into the coding. If you could maybe put it into a bit simpler terms for a newbie like myself I would really appreciate it... If you don't mind that is.
|
ok so say a monster is walking about.And while he\she\it is walking about it checks for ppl around(for(var/mob/M in view()).When it finds himself one he heads over to it.When he bumps into it(or is a certain distance from it) it calls your attack proc.
|
Look in the demos,libaries,tutorials.
http://www.byond.com/hub/ hub.cgi?qd=hubIndex;hub=527;channel=5153 |
and call and attack proc or when the user attacks it call a counterattack proc.