Rat32 Posted November 20, 2016 Share Posted November 20, 2016 Hello community. I nedd to calculate rotation of element to make "looking for" of this. For example: I have a arrow object, and I must set him rotation to the specifed point (for example player). I need calculate X, Y, Z rotation to make a "looking for" of this object. Very thanks. Link to comment
Mr.Loki Posted November 20, 2016 Share Posted November 20, 2016 (edited) https://wiki.multitheftauto.com/wiki/FindRotation But it only returns rotation on the z axis so it will follow anything on x and y but on z(up and down) But I'm sure you can get it if you modify the code a bit Edited November 20, 2016 by loki2143 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