I have always used mob/victim as mob in oview(1)
But i am trying to figure out how to have it where it set victim as the mob in that your facing not the ones that are behing you to.
ID:149723
Mar 1 2002, 6:57 am
|
|
Mar 1 2002, 6:59 am
|
|
Try using range.
|
In response to Super16
|
|
Super16 wrote:
Try using range. Range has nothing to do with this problem. You're going to need to use dir and get_step to determine if a mob is right in front of you. get_step(src, src.dir) gives the location directly in front of you. var mob/target for(target in locate(get_step(src, src.dir))) with this code, target will either equal the mob in front of you, or null, if there is nobody there. |