Jump to content

Downloading Screen


Controlled

Recommended Posts

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

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