Snow-Man Posted May 9, 2014 Posted May 9, 2014 local px, py, pz = getElementPosition(localPlayer) local theRandomyMarkers = math.random(#MissionsMarkers) local x, y, z = MissionsMarkers[theRandomyMarkers][1], MissionsMarkers[theRandomyMarkers][2], MissionsMarkers[theRandomyMarkers][3] if (getDistanceBetweenPoints3D(x, y, z, px, py, pz < 250) then end not work and no debugs
TAPL Posted May 9, 2014 Posted May 9, 2014 if (getDistanceBetweenPoints3D(x, y, z, px, py, pz < 250) then Should be: if (getDistanceBetweenPoints3D(x, y, z, px, py, pz) < 250) then
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now