Pedro Silveira Posted December 3, 2017 Share Posted December 3, 2017 Im trying to compare a element position with this code: function verificar2 () x, y, z = getElementPosition( robmarker1 ) if x == 3099.97 and y == -3281.69 and z == -0.5 then outputChatBox("Esta loja ainda está recuperando-se de um assalto!", l_5_0, 0, 255, 0) else outputChatBox("Digite /roubar para furtar a loja!", l_5_0, 0, 255, 255) end end But she only do the else. The marker is in the correct position and the script do the else. Why? Link to comment
Bonus Posted December 3, 2017 Share Posted December 3, 2017 Use always getDistanceBetweenPoints3D to compare positions (or your own calculation) 1 Link to comment
Pedro Silveira Posted December 3, 2017 Author Share Posted December 3, 2017 Worked now! Thank you Bonus! Link to comment
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