Edikosh998 Posted April 23, 2012 Share Posted April 23, 2012 Hi, as the titles says, I'd like to know how can I set a cameraMatrix to a player who is downloading when he joins the server. Link to comment
Castillo Posted April 23, 2012 Share Posted April 23, 2012 Use setCameraMatrix server side? Link to comment
Edikosh998 Posted April 23, 2012 Author Share Posted April 23, 2012 But which event should I have to use? Link to comment
Absence2 Posted April 23, 2012 Share Posted April 23, 2012 click on the link. and onResourceStart Link to comment
Edikosh998 Posted April 23, 2012 Author Share Posted April 23, 2012 Ok nevermind, sorry for wasting your time. And thanks Link to comment
Castillo Posted April 23, 2012 Share Posted April 23, 2012 You must use the event: onPlayerJoin. Link to comment
BorderLine Posted April 23, 2012 Share Posted April 23, 2012 i have this. maybe can help you function camera () fadeCamera(source, true, 5) setCameraMatrix(source, 2003, -881, 130, 1832, -1249, 64) end addEventHandler("onPlayerJoin", getRootElement(), camera) serverside Link to comment
DNL291 Posted April 24, 2012 Share Posted April 24, 2012 addEventHandler("onClientPlayerJoin", resourceRoot, function () if isTransferBoxActive() then setCameraMatrix(1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end end ) Link to comment
Kenix Posted April 24, 2012 Share Posted April 24, 2012 addEventHandler("onClientPlayerJoin", resourceRoot, function () if isTransferBoxActive() then setCameraMatrix(1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end end ) It's wrong. Link to comment
CapY Posted April 24, 2012 Share Posted April 24, 2012 addEventHandler("onClientPlayerJoin", resourceRoot, function () if isTransferBoxActive() then setCameraMatrix(1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end end ) Just use it with onPlayerJoin event and without 'if isTransferBoxActive() then' condition. Make sure to include element in setCameraMatrix while server side and remove an 'end'. Link to comment
BinSlayer1 Posted April 24, 2012 Share Posted April 24, 2012 Actually Just use Yakuza.Real's script and ignore everyone else's post. 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