kamyrdol32 Posted March 22, 2017 Posted March 22, 2017 Hello. I have question. How can i rotate player camera? When i use teleport camera is target on wall, i want rotate is aout 180*. (Sorry, my English is bad...)
^iiEcoo'x_) Posted March 22, 2017 Posted March 22, 2017 https://wiki.multitheftauto.com/wiki/GetCameraRotation
kamyrdol32 Posted March 22, 2017 Author Posted March 22, 2017 Yea, but how can i change CameraRotation?
Skully Posted March 22, 2017 Posted March 22, 2017 You can use setPedCameraRotation on the player when they teleport, and have it face whatever direction intended.
xyzii Posted March 24, 2017 Posted March 24, 2017 (edited) Use setElementRotation (set rotOrder to "default", conformPedRotation to true for best results) and then set his camera target to himself again. That should make the player and camera aligned correctly Edited March 24, 2017 by xyzii
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