Hi, this is a timer that have been set, but they object start go faster, and sometimes slower. and i have tryed everything to make it go in the same speed but it does not work at all. could you help me and show me whats wrong with it?
local moveTable = {
--{time, x, y, z, rotX, rotY, rotZ},
{10000, 2896.19, -2397.39, 3.70},
{80000, 2896.19, -2762.60, 3.70},
{35000, 2854, -2874.60, 3.70},
{125000, 1162.09, -2874.60, 3.70},
{210000, 880.70, -2146.5, 3.70},
{270000, 880.70, -1884.09, 3.70},
}
function move()
for k,v in ipairs(moveTable) do
if k == 1 then
moveObject(object1, unpack(v))
else
local time = 0
if k ~= 2 then
for i=1,k-1 do
time = time + moveTable[i][1]
end
else
time = moveTable[1][1]
end
outputChatBox(time)
setTimer(moveObject,time,1,object1, unpack(v))
end
end
end
function moveGate(playerSource, cmd)
move()
end
addCommandHandler("gostart", moveGate)