Drakath Posted January 24, 2015 Share Posted January 24, 2015 I have a script that creates an object and setCameraMatrix to view it. However when I exit that view the script does this: setCameraTarget(localPlayer). And when the camera is set back to player, player falls under the map. I reported this issue here: http://bugs.multitheftauto.com/view.php?id=8736 But does anyone know a workaround for this? function test1() setCameraMatrix(-1660, 1218, 100, -1658, 1209, 22) end addCommandHandler("test1", test1) function test2() setCameraTarget(localPlayer) end addCommandHandler("test2", test2) Link to comment
rtx Posted January 24, 2015 Share Posted January 24, 2015 Have you tried freezing the player until he becomes the camera's target again? (with a little delay so the objects are streamed in again). Link to comment
LaCosTa Posted January 24, 2015 Share Posted January 24, 2015 i got the same problem too , try to use fadeCamera just few secondes till the camera get its real position Link to comment
Drakath Posted January 24, 2015 Author Share Posted January 24, 2015 Thank you, freezing the player worked. I haven't tried fading the camera but it might work too. 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