mommytellme Posted February 2, 2015 Share Posted February 2, 2015 I want the camera to be rotated by the rotation of the plane, so I wrote this code: function camera () local veh = getPedOccupiedVehicle(localPlayer) if veh then if getVehicleType(veh) == "Plane" then local raz, dwa, trzy, cztery, piec, szesc = getCameraMatrix() local rotX, rotY, rotZ = getElementRotation(veh) setCameraMatrix(raz, dwa, trzy, cztery, piec, szesc, rotZ) end end end addEventHandler("onClientPreRender", root, camera) But it does not work, when you enter the Hydra camera locks in place. How do I fix this? Link to comment
MTA Team botder Posted February 2, 2015 MTA Team Share Posted February 2, 2015 https://forum.multitheftauto.com/viewtopic.php?p=721951#p721951 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