local currentIndex = 1 
local route = 
    { 
        { 0, 0, 0 }, 
        { 0, 0, 1 }, 
        { 0, 0, 2 }, 
        { 0, 0, 3 }, 
        { 0, 0, 4 }, 
    } 
  
marker = createMarker ( unpack ( route [ currentIndex ] ) ) 
  
addEventHandler ( "onMarkerHit", root, 
    function ( ) 
        if ( source == marker ) then 
            currentIndex = ( currentIndex + 1 ) 
            destroyElement ( marker ) 
            marker = nil 
            marker = createMarker ( unpack ( route [ currentIndex ] ) ) 
        end 
    end 
)