Desaster Posted November 1, 2013 Posted November 1, 2013 when you die you see a dancing camera how to remove that ?
Castillo Posted November 1, 2013 Posted November 1, 2013 Try setting the camera to the player. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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 )
Castillo Posted November 1, 2013 Posted November 1, 2013 Remove 'source' from the function name. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Moderators IIYAMA Posted November 1, 2013 Moderators Posted November 1, 2013 function( source ) Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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. And now Aurora is back again, pm for more info. Ex. Lead dev & L6 Staff at AUR, NGC, MTA RP & SAA. Ex. Developer at Community of Social Gamers - CSG Ex Founder of International Gaming Community - IGC and Union of Individual Players- UIP Ab-47
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