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?
|
In response to Soccerguy13
|
|
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.
|
In response to Riotha
|
|
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.
|
In response to Soccerguy13
|
|
oh, ok. I think I get it now. Thanks a bunch.
|
In response to Riotha
|
|
Look in the demos,libaries,tutorials.
http://www.byond.com/hub/ hub.cgi?qd=hubIndex;hub=527;channel=5153 |
In response to Siientx
|
|
oh yeah I could have told those.Los of thought.
|
and call and attack proc or when the user attacks it call a counterattack proc.