MrStein Posted July 2, 2017 Share Posted July 2, 2017 - How to create a login with moving camera matrix Link to comment
Dimos7 Posted July 2, 2017 Share Posted July 2, 2017 take the locations you want and try to make a table with the locations and try to add each one for the time you want to cahnge the camera Link to comment
MrStein Posted July 3, 2017 Author Share Posted July 3, 2017 13 hours ago, Dimos7 said: Pegue os locais que deseja e tente fazer uma tabela com os locais e tente adicionar cada um para o tempo que você deseja inserir na câmera Are there any examples ??? Link to comment
Dimos7 Posted July 3, 2017 Share Posted July 3, 2017 local cameraLocations = {locations you want here} local cameraTimers = {} local activeLocation function changeCmaera() for index, location in ipairs(cameraLocations) do if isTimer(cameraTimers[index]) then killTimer(cameraTimers[index]) end cameraTimers[index] = setTimer( setCameraMatrix, time*index, execute, location[1], location[2], location[3], location[4], location[5], location[6]) end if isTimer(cameraTimers[0]) then killTimer(cameraTimers[0]) cameraTimers[0] = nil end cameraTimers[0] = setTimer(setCameraTarget, time*(#cameraLocations+1+, execute, localPlayer) if not activeLocation then activeLocation = 1 end if activeLocation <= #cameraLocations then local location = cameraLocations[activeLocation] setCameraMatrix(location[1], location[2], location[3], location[4], location[5], location[6]) activeLocation = activeLocation + 1 setTimer(changeCmaera, time, execute) else setCameraTarget(localPlayer) end end something like that 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