Controlled Posted January 25, 2014 Share Posted January 25, 2014 How can one make it so in the "Downloading Map" screen when you connect to a server, it has the camera on a certain spot. I have seen it in other servers and looks cool. I haven't found anything on how to do this though so If you know could ya please help me out? Link to comment
xXMADEXx Posted January 25, 2014 Share Posted January 25, 2014 These? setCameraMatrix textCreateDisplay textCreateTextItem textDisplayAddObserver textDisplayRemoveObserver Link to comment
Controlled Posted January 25, 2014 Author Share Posted January 25, 2014 Would all I need "setCameraMatrix"? I don't need any text really, just something for people to see while downloading Link to comment
Karuzo Posted January 25, 2014 Share Posted January 25, 2014 setCameraMatrix isTransferBoxActive Link to comment
iPrestege Posted January 26, 2014 Share Posted January 26, 2014 I guess if you can make a random matrix camera for the server place's it would be nice until the player finish the download . Link to comment
Tails Posted January 26, 2014 Share Posted January 26, 2014 Server side: addEventHandler("onPlayerJoin", root, function() setCameraMatrix(source, 936.33, -1707.76, 88.23, 940.26, -1534.05, 79.07) showPlayerHudComponent(source,"all",false) showChat(source,false) end ) The 'source' in setCameraMatrix is the local player basically, the first three coordinates is the position of the camera (x,y,z) the last three coordinates is the target of the camera (x,y,z) The target generally is only a few inches further in the direction that you're looking at. Link to comment
Controlled Posted January 26, 2014 Author Share Posted January 26, 2014 Server side: addEventHandler("onPlayerJoin", root, function() setCameraMatrix(source, 936.33, -1707.76, 88.23, 940.26, -1534.05, 79.07) showPlayerHudComponent(source,"all",false) showChat(source,false) end ) The 'source' in setCameraMatrix is the local player basically, the first three coordinates is the position of the camera (x,y,z) the last three coordinates is the target of the camera (x,y,z) The target generally is only a few inches further in the direction that you're looking at. I tried that and it seemed not to make a difference. my screen was still black Link to comment
xXMADEXx Posted January 26, 2014 Share Posted January 26, 2014 try putting in fadeCamera Link to comment
Controlled Posted January 26, 2014 Author Share Posted January 26, 2014 try putting in fadeCamera function setCameraOnPlayerJoin() -- slowly fade the camera in to make the screen visible fadeCamera(source, true, 5) -- set the player's camera to a fixed position, looking at a fixed point setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin) I used that example and it made no difference, it was just a black screen. Link to comment
Gallardo9944 Posted January 26, 2014 Share Posted January 26, 2014 Are you sure there is no other code which fades the camera out? Link to comment
Maurize Posted January 26, 2014 Share Posted January 26, 2014 addEventHandler( "onClientResourceStart", resourceRoot, function() setCameraMatrix( 953, -1922, 7, 953, -1892, 4 ) setCameraTarget( getLocalPlayer() ) fadeCamera( true, 0.1 ) end ) 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