ID:148045
 
I actually want to check the next tile in my direction. I thought this was mainly what get_step() would work for so this is what I have:
Attack(mob/attacker,mob/M in get_step(attacker,attacker.dir))

This doesn't see the mob infront of me, am I using it the wrong way, or is there a better way to do this? Any help would be appreciated.
Attack(mob/M in get_step(src,src.dir))
In response to Zaltron
I have it as a proc so I can't use that. I'm guessing the problem is that I checking a var from a mob that I'm declaring in the same line???
In response to Jnco904
Jnco904 wrote:
I have it as a proc so I can't use that. I'm guessing the problem is that I checking a var from a mob that I'm declaring in the same line???

That's part of it. The rest is that if you're using a proc, putting in "as" and "in" clauses won't do diddly crap. You have to perform the check for legal values from within the proc itself.

Lummox JR
In response to Lummox JR
Woohoo, it works now. Thanks guys. :)