Desaster Posted November 1, 2013 Share Posted November 1, 2013 when you die you see a dancing camera how to remove that ? Link to comment
Castillo Posted November 1, 2013 Share Posted November 1, 2013 Try setting the camera to the player. Link to comment
Desaster Posted November 1, 2013 Author Share 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 Link to comment
Castillo Posted November 1, 2013 Share Posted November 1, 2013 Move the setCameraMatrix into a 'onPlayerWasted' event. Link to comment
Desaster Posted November 1, 2013 Author Share 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 ) Link to comment
Castillo Posted November 1, 2013 Share Posted November 1, 2013 Remove 'source' from the function name. Link to comment
Desaster Posted November 1, 2013 Author Share Posted November 1, 2013 still show me the dancing camera Link to comment
Moderators IIYAMA Posted November 1, 2013 Moderators Share Posted November 1, 2013 function( source ) Link to comment
Desaster Posted November 1, 2013 Author Share 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 ? Link to comment
isa_Khamdan Posted November 2, 2013 Share 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 Link to comment
Ab-47 Posted November 2, 2013 Share Posted November 2, 2013 addEventHandler ( 'onPlayerWasted', getRootElement ( ), function() setCameraTarget(source, source) end ) I guess. 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