Desaster Posted November 1, 2013 Posted November 1, 2013 when you die you see a dancing camera how to remove that ?
Desaster Posted November 1, 2013 Author Posted November 1, 2013 I tryed addEventHandler ( 'onPlayerLogin', getRootElement ( ), function() killPed(source) --spawnPlayer (source, 0, 0, 5, 0, 0, 0, 0, spawnTeam) setCameraMatrix(source, -2246.4399414063, 0.65520000457764, 49.66189956665, -2247.34375, 0.70009028911591, 49.236320495605) end ) it set the camera there but then I see the player
Castillo Posted November 1, 2013 Posted November 1, 2013 Move the setCameraMatrix into a 'onPlayerWasted' event.
Desaster Posted November 1, 2013 Author Posted November 1, 2013 still the same addEventHandler ( 'onPlayerLogin', getRootElement ( ), function() --fadeCamera ( source, false, 1, 0, 0, 0 ) --setTimer ( fade, 10000, 10, source ) killPed(source) --spawnPlayer (source, 0, 0, 5, 0, 0, 0, 0, spawnTeam) end ) addEventHandler ( 'onPlayerWasted', getRootElement ( ), function( source ) setCameraMatrix(source, -2246.4399414063, 0.65520000457764, 49.66189956665, -2247.34375, 0.70009028911591, 49.236320495605) end )
Desaster Posted November 1, 2013 Author Posted November 1, 2013 yup I did that but still not work I see the dancing camera the problem is that it set the camera matrix correct then I see that dancing camera got it ?
isa_Khamdan Posted November 2, 2013 Posted November 2, 2013 yup I did that but still not work I see the dancing camerathe problem is that it set the camera matrix correct then I see that dancing camera got it ? use SetCameraTarget Then spawn the player to stop the ' dancing camera ' after that use setCameraMatrix
Ab-47 Posted November 2, 2013 Posted November 2, 2013 addEventHandler ( 'onPlayerWasted', getRootElement ( ), function() setCameraTarget(source, source) end ) I guess.
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