OnlineCheater Posted February 16, 2016 Share Posted February 16, 2016 Hey all, I've this code: addEventHandler("onClientRender", root, function() if travelling then smoothMoveCamera(....) -- [url]https://wiki.multitheftauto.com/wiki/SmoothMoveCamera[/url] else ???? end end ) So here is my problem, once travelling is false, I want to set the camera on the player... ( the part to complet with "????" ) So I've already tried two ways, which are the following ones: setCameraMatrix(getCameraMatrix(localPlayer)) -- gives floods of errors like: expected vector at argument .... setCameraTarget(getCameraTarget(localPlayer)) -- freezes the camera on the player but only one position so you're unable to move it ... Link to comment
Bonus Posted February 16, 2016 Share Posted February 16, 2016 setCameraTarget (localPlayer) Link to comment
OnlineCheater Posted February 16, 2016 Author Share Posted February 16, 2016 setCameraTarget (localPlayer) That doesn't work either, my system is complicated, the problem comes from others sides.. Just forget this problem and considere it as solved, I'll find a solution alone. Link to comment
Bonus Posted February 17, 2016 Share Posted February 17, 2016 What is so complicated about that? Perhaps you need to use removeCamHandler() before setCameraTarget. Link to comment
OnlineCheater Posted February 17, 2016 Author Share Posted February 17, 2016 What is so complicated about that?Perhaps you need to use removeCamHandler() before setCameraTarget. Because there are cameras to set according to lots of events.. I won't show my code then because it's too big. Problem solved. 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