ID:175661
![]() Mar 23 2003, 3:27 am
|
|
I have a Click() thingy to attack something in my game. It works fine, except for one thing. I want to only be able to attack something that's next to me when i click it, not something all the way across the screen. Thanks for the help!
|
that doesn't work either... here's what i've got
<font size-1> <font face="courier"> mob enemy bat icon='bat.dmi' Click() set src=oview(1) attack(src) |
No, no, set src in blah will not work for Click(). You need to use get_dist() to check how close you are. Here's an example:
mob/Click() |
I think that's what your looking for.