check pawn range from another pawn position?
Posted: Sat Oct 29, 2011 1:57 am
Hello.
I'd like to make my WP check whether one object is in a set range of a different object (for example, I want to find object with ID 100000, and check if there's object with ID 110000 in a range of 100 of the 100000 one). How should I go about changing my position to pawn with ID 100000 without actually going to this object?
Or, if there's any other way to do it, please post it.
I'm sure that I've seen it in one WP, but can't find it, so I'd like to be either pointed to that WP if anyone knows which one it was, or a few lines of code that will do what I'd like to do.
Cheers
I'd like to make my WP check whether one object is in a set range of a different object (for example, I want to find object with ID 100000, and check if there's object with ID 110000 in a range of 100 of the 100000 one). How should I go about changing my position to pawn with ID 100000 without actually going to this object?
Or, if there's any other way to do it, please post it.
I'm sure that I've seen it in one WP, but can't find it, so I'd like to be either pointed to that WP if anyone knows which one it was, or a few lines of code that will do what I'd like to do.
Cheers