GTX Posted May 4, 2015 Posted May 4, 2015 Hi, how can I calculate position right above the vehicle highly accurately?
xXMADEXx Posted May 4, 2015 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;
GTX Posted May 4, 2015 Author Posted May 4, 2015 Nah, I need it more accurate or names will bug into vehicle.
xXMADEXx Posted May 4, 2015 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...
WhoAmI Posted May 4, 2015 Posted May 4, 2015 He probably means that some vehicles are much higher than others, which can cause that text is inside vehicle.
GTX Posted May 4, 2015 Author Posted May 4, 2015 Yeah, exactly. Got solution anyways: getElementBoundingBox.
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