GTX Posted May 4, 2015 Share Posted May 4, 2015 Hi, how can I calculate position right above the vehicle highly accurately? Link to comment
xXMADEXx Posted May 4, 2015 Share Posted May 4, 2015 Just get the position of the vehicle (getElementPosition) and add to the Z. Ex: local veh = createVehicle ( 411, 5, 353.56, 265.265 ); local x, y, z = getElementPosition ( veh ); z = z + 2; Link to comment
GTX Posted May 4, 2015 Author Share Posted May 4, 2015 Nah, I need it more accurate or names will bug into vehicle. Link to comment
xXMADEXx Posted May 4, 2015 Share Posted May 4, 2015 Nah, I need it more accurate or names will bug into vehicle. I don't know how you would get more accurate than exact... Link to comment
WhoAmI Posted May 4, 2015 Share Posted May 4, 2015 He probably means that some vehicles are much higher than others, which can cause that text is inside vehicle. Link to comment
GTX Posted May 4, 2015 Author Share Posted May 4, 2015 Yeah, exactly. Got solution anyways: getElementBoundingBox. 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