Hmm, bit hard to solve this without any further code.
The second condition is correct ? > 20 ?
Debug this using:
Text 0, 0, EntityDistance(guy, pivot1)
Text 0, 20, EntityDistance(guy, pivot2)
The second condition is correct ? > 20 ?
Debug this using:
Text 0, 0, EntityDistance(guy, pivot1)
Text 0, 20, EntityDistance(guy, pivot2)