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.
ID:148045
![]() Jul 29 2003, 1:08 am
|
|
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. |
![]() Jul 29 2003, 8:10 am
|
|
Attack(mob/M in get_step(src,src.dir))
|
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???
|
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 |