VVrongVVay Posted July 4, 2014 Share Posted July 4, 2014 addEventHandler("onClientRender", getRootElement(), function() cx, cy, cz = getCameraMatrix() px, py, pz = -4.8320274353027, -372.212890625, 9 if isLineOfSightClear(cx, cy, cz, px, py, pz, true, false, false, true, false, false, false, getLocalPlayer()) then local x, y = getScreenFromWorldPosition(px, py, pz) dxDrawText("*** Lądowisko dla helikopterów ***", x, y, x, y, tocolor(128, 128, 128), 1, "bankgothic") end end) How do I set the distance here show that text? Link to comment
Castillo Posted July 5, 2014 Share Posted July 5, 2014 You must use one of the following functions: getDistanceBetweenPoints2D getDistanceBetweenPoints3D Link to comment
VVrongVVay Posted July 5, 2014 Author Share Posted July 5, 2014 But you can add it to this code? I do not know where to put it. Link to comment
Castillo Posted July 5, 2014 Share Posted July 5, 2014 Try to make it, then if you can't, post what you've tried and we'll help you fix it. Link to comment
VVrongVVay Posted July 5, 2014 Author Share Posted July 5, 2014 I can not do that. Can I ask you about ready code on the sign at the location on the server DayZ? 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