Miika Posted October 5, 2014 Share Posted October 5, 2014 Hi! My fade camera not working. What is the problem? [server] function setFadeCamera() fadeCamera(player, true, 1000) setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end addCommandHandler("test", setFadeCamera) Link to comment
Mr.Aleks Posted October 5, 2014 Share Posted October 5, 2014 You can't use "player" if you are using "source" as the element, check it out. Link to comment
Miika Posted October 5, 2014 Author Share Posted October 5, 2014 You can't use "player" if you are using "source" as the element, check it out. fadeCamera(source, true, 1000) Not working. And debugscript 3 does not say anything. Link to comment
Mr_Moose Posted October 5, 2014 Share Posted October 5, 2014 It does work, but you'll have to wait 1000 seconds before the fading is finished, that's almost 17 minutes, and it would probably take at least 100 seconds before you actually can see a little bit of what's hiding behind the darkness. Link to comment
Miika Posted October 5, 2014 Author Share Posted October 5, 2014 It does work, but you'll have to wait 1000 seconds before the fading is finished, that's almost 17 minutes, and it would probably take at least 100 seconds before you actually can see a little bit of what's hiding behind the darkness. I change command. And debugscript says: Warning: teams/teams.lua:2: Bad argument @ 'fadeCamera' [Expected element at argument 1, got nill] Warning: teams/teams.lua:2: Bad argument @ 'setCameraMatrix' [Expected element at argument 1, got nill] function setCameraOnPlayerJoin() fadeCamera(source, true) setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end addCommandHandler("fade", setCameraOnPlayerJoin) Link to comment
Mr_Moose Posted October 5, 2014 Share Posted October 5, 2014 function setCameraOnPlayerJoin(thePlayer) fadeCamera(thePlayer, true, 1) setCameraMatrix(thePlayer, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end addCommandHandler("fade", setCameraOnPlayerJoin) That will solve the problem. Link to comment
Miika Posted October 5, 2014 Author Share Posted October 5, 2014 function setCameraOnPlayerJoin(thePlayer) fadeCamera(thePlayer, true, 1) setCameraMatrix(thePlayer, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end addCommandHandler("fade", setCameraOnPlayerJoin) That will solve the problem. Thx 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