highwaywarrior Posted April 8, 2021 Share Posted April 8, 2021 Anyone know how can I make a fully fixed vehicle camera? I tried this, it's pretty close to what I want but the camera is still moving up and down. I need to make the camera completely frozen setCameraTarget ( localPlayer ) Example of what I want Link to comment
Tekken Posted April 8, 2021 Share Posted April 8, 2021 https://wiki.multitheftauto.com/wiki/SetCameraMatrix That should do what you want, it will require some math though. Link to comment
XaskeL Posted April 8, 2021 Share Posted April 8, 2021 attachElements( getCamera(), getPedOccupiedVehicle( localPlayer ), 0, -5, 1.5, -10, 0, 0 ); I think this is the result you want. 1 Link to comment
highwaywarrior Posted April 9, 2021 Author Share Posted April 9, 2021 Thanks a lot, but now I can't make it go back to original camera. I tried this, but camera doesn't get connected to player it's just detaching from vehicle and not moving at all. detachElements( getCamera() ) setCameraMatrix ( localPlayer ) Link to comment
XaskeL Posted April 9, 2021 Share Posted April 9, 2021 (edited) 15 minutes ago, highwaywarrior said: Thanks a lot, but now I can't make it go back to original camera. I tried this, but camera doesn't get connected to player it's just detaching from vehicle and not moving at all. detachElements( getCamera() ) setCameraMatrix ( localPlayer ) try this without detachElements and setCameraMatrix setCameraTarget( localPlayer ) Edited April 9, 2021 by XaskeL Link to comment
highwaywarrior Posted April 9, 2021 Author Share Posted April 9, 2021 This is basically turning it to the first fixed camera i made, not original GTA camera 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