ID:174187
 
Ok, I need a little bit of help here. I got an attack verb, but I'd like it so it only works for the object that's in front of you. How can this be done?
mob
verb
AttackMob(mob/M in oview(1))

is that EASY or EASY?
In response to Dtroys
don't say thats easy when you have a 30 minute bump dude...xD -still laughing-
In response to Dtroys
Of course that's easy, but that's not what I want. That's what I have, but I'd like it to only work for the obj you're facing.
In response to Espy
I'm still a bit confused, perhaps you can explain it a little better?

~Cam
In response to Camaro
Ok, sorry. Now let me give as much detail as I possibly can. It'd probably be eaiser
if I gave a scenerio.

You're in a field, and you have 3 guys around you. Here's what it looks like..
Key
@ = You
% = person

%%
@%

You are facing to the right. How can I make it so it doesn't attack the ones to the top,
and the one to the upper right? Because the way I have it setup right now, it
automatically chooses one to attack. But I want it so it only can attack the players direction.

Does this help any?
In response to Espy
for(mob/M in get_step(usr,usr.dir))

there ya go