kamyrdol32 Posted March 22, 2017 Share 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...) Link to comment
^iiEcoo'x_) Posted March 22, 2017 Share Posted March 22, 2017 https://wiki.multitheftauto.com/wiki/GetCameraRotation Link to comment
kamyrdol32 Posted March 22, 2017 Author Share Posted March 22, 2017 Yea, but how can i change CameraRotation? Link to comment
itHyperoX Posted March 22, 2017 Share Posted March 22, 2017 SetPedCameraRotation maybe Link to comment
Skully Posted March 22, 2017 Share Posted March 22, 2017 You can use setPedCameraRotation on the player when they teleport, and have it face whatever direction intended. Link to comment
xyzii Posted March 24, 2017 Share 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 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