Jump to content

Downloading Screen


Controlled

Recommended Posts

Posted

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?

Posted

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.

Posted
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

Posted
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.

Posted
  
addEventHandler( "onClientResourceStart", resourceRoot, 
function() 
    setCameraMatrix( 953, -1922, 7, 953, -1892, 4 ) 
    setCameraTarget( getLocalPlayer() ) 
    fadeCamera( true, 0.1 ) 
end ) 
  

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...