Hi All,
I need to do an IF statement to get the players distance from a array of co-ordinates.
Heres what ive got so far:
markersArray = [
459.01037597656,-992.32800292969,30.689575195313,
459.01037597656,-992.32800292969,30.689575195313,
459.01037597656,-992.32800292969,30.689575195313,
575.40698242188,-3121.94921875,18.768627166748,
459.01037597656,-992.32800292969,30.689575195313,
459.01037597656,-992.32800292969,30.689575195313,
459.01037597656,-992.32800292969,30.689575195313,
459.01037597656,-992.32800292969,30.689575195313,
459.01037597656,-992.32800292969,30.689575195313,
369.9228515625,-1607.12976074219,29.291934967041,
1848.2177734375,3689.5593261719,34.267040252686,
-448.53857421875,6009.2690429688,31.716375350952,
459.01037597656,-992.32800292969,30.689575195313,
459.01037597656,-992.32800292969,30.689575195313,
459.01037597656,-992.32800292969,30.689575195313,
1849.7268066406,3689.9221191406,34.267040252686,
-447.44305419922,6007.9516601563,31.716375350952,
459.01037597656,-992.32800292969,30.689575195313
]
playerLocation = GetEntityCoords(GetPlayerPed(-1))
Now how would I check to see if the distance is less then say 4 meters from the co-ordinates?
Thanks
Harry