Caneman Posted January 6, 2008 Share Posted January 6, 2008 setCameraMode(source, "fixed") setTimer(setCameraPosition, 1000, 1, source, -1664.0443,-2218.2202,33.5022) setTimer(steCameraLookAt, 1000, 1, source, -1632.0305,-2242.9973,31.4766) According to the map, The camera is in the correct position, but the screen, the camera is looking towards the coords 0, 0 , 0 if i am not mistaken, and the camera's position is at 0, 0, 0, but according to the radar, it is in the correct position. has anyone god any fix for this problem? Link to comment
ChrML Posted January 6, 2008 Share Posted January 6, 2008 Try changing it to: setCameraMode(source, "fixed") setCameraPosition ( source, -1664.0443,-2218.2202,33.5022 ) setTimer(setCameraLookAt, 1000, 1, source, -1632.0305,-2242.9973,31.4766) LookAt can't be set in the same frame as the position due to a bug in dp1. Also you had a typo in your code, ste instead of set. If it still doesn't work, add some chatbox output to see if the code even executes. Link to comment
eAi Posted January 6, 2008 Share Posted January 6, 2008 Try toggleCameraFixedMode instead of your setCameraMode. Link to comment
Slothman Posted January 7, 2008 Share Posted January 7, 2008 yes, the clientside toggleCameraFixedMode i have found to be more reliable Link to comment
Zonex Favel Posted January 10, 2008 Share Posted January 10, 2008 I figured out the problem you have to fade in the camera first. Link to comment
Caneman Posted January 10, 2008 Author Share Posted January 10, 2008 yeah, i do fade the camera first tho... i just didn't post it in my code, sorry. Could you post your camera code here so i can compare it. Link to comment
Zonex Favel Posted January 10, 2008 Share Posted January 10, 2008 Here you go function playerJoin () setCameraMode(source, "fixed") setTimer(setCameraPosition, 1000, 1, source, 2495.1257324219, -1686.6124267578, 153.513834953308) setTimer(setCameraLookAt, 1000, 1, source, 1495.1257324219, -186.6124267578, 120.513834953308) fadeCamera(source,true) end addEventHandler("onPlayerJoin", getRootElement(), playerJoin) Link to comment
Caneman Posted January 10, 2008 Author Share Posted January 10, 2008 Did that acctually work? edit: that acctually worked ! dunno what happened 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