Maybe you should calculate a distance between the man and the gun. With the Pythagore thing:
thenVB Code:
distance = sqr((distanceX*distanceX) + (distanceY*distanceY))
VB Code:
if distance > 600 then bla bla... else bla bla.. endif
This also cover diagonal distance![]()




Reply With Quote