Stones Posted November 25, 2013 Posted November 25, 2013 So firsly, i'd like to change the location of my camera when you log into the server. addEventHandler("onClientResourceStart", resourceRoot, function () build_loginWin() guiSetVisible(background_front,false) showLoginWindow(true) guiSetInputMode("no_binds_when_editing") --playSound("winsound.mp3") fadeCamera (true) setCameraMatrix(1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) triggerServerEvent("requestServerNews", localPlayer) end I know it's somthing to do with that part ^^ And the last thing is, how would i create a area so that players are unable to use weapons, like a safezone from WarZ
TAPL Posted November 25, 2013 Posted November 25, 2013 You missing bracket for addEventHandler (after end). You can find safezone on the community.
Stones Posted November 26, 2013 Author Posted November 26, 2013 The login pannel works, it's the actually camera angle that i want to change I know this is the position of the camera setCameraMatrix(1468.8785400391, -919.25317382813, 100.153465271 But it's the second 1468.8785400391, -919.25317382813, 100.153465271 , i don't know what to change to make it face north south east or west
Spajk Posted November 27, 2013 Posted November 27, 2013 The second 3 numbers are x,y and z of the location camera is looking at, thats what you should change.
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