toxicsmoke11 Posted January 2, 2014 Share Posted January 2, 2014 hi guys,im having a problem of course, i want to make a script which should put camera on specified position for 5 seconds and then it should spawn the player and put camera on right position so that it keeps following him but i don't know how to fix this script and how to finish it can anyone help me? feel free to laugh function onPlayerJoin() local joinedPlayerName = getPlayerName ( source ) setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) setTimer ( onPlayerJoin, 5000, 1 ) end Link to comment
manawydan Posted January 2, 2014 Share Posted January 2, 2014 (edited) try( no tested) function onPlayerJoin() local joinedPlayerName = getPlayerName ( source ) setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) setTimer(function() setCameraTarget(source)end,5000,1) end addEventHandler("onPlayerJoin",root,onPlayerJoin) Edited January 2, 2014 by Guest 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