Similarly, you could just use setVelocity(0 0 0);
What if they're in the air at the moment the event triggers? What if someone else causes them to move while they're stationary? (Spear, rocket launcher, D-wand, clickpush.)
For all shop systems I've ever done, I just do a simple vectorDist check. I don't understand why this isn't solved yet..
That's what I thought originally, but for some reason people who DON'T think of this seem very adamatant about NOT using it. I don't know why.