Jump to content

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...