swapCamera
swapCamera( camIdx [int] )
Swaps the current camera to the specified camera.
WarMenu.Button("Current Camera Index: ", '← '..tostring(cameraIndex)..' →')
if WarMenu.IsItemHovered() then
WarMenu.ToolTip('User the arrow keys to swap through available cameras.',nil,true)
if IsControlJustReleased(2, 189) then
cameraIndex = cameraIndex - 1
if cameraIndex < 1 then
cameraIndex = cameraAmmount
end
dynamic:swapCamera(cameraIndex)
end
if IsControlJustReleased(2, 190) then
cameraIndex = cameraIndex + 1
if cameraIndex > cameraAmmount then
cameraIndex = 1
end
dynamic:swapCamera(cameraIndex)
end
end