I need to make this object move every 5 minutes from side 1 to 2 to 3 to 2 to 1 and so on
function createTheGate ()
myGate1 = createObject ( 3585, 1806.5999755859,1842.5999755859, 7 , 0, 0, 90 )
end
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate )
function openMyGate ( )
moveObject ( myGate1, 90000, 1806.5999755859,1842.5999755859,7 )
end
addCommandHandler("1",openMyGate)
function movingMyGateBack ()
moveObject ( myGate1, 90000, 1806.5999755859,1059.0999755859,7 )
end
addCommandHandler("3",movingMyGateBack)
function movingMyGateBal ()
moveObject ( myGate1, 45000, 1806.5999755859,1475.5,7 )
end
addCommandHandler("2",movingMyGateBal)