Hallo,
an autotour put together after different ideas by Klaus found here in the forum.
Problem: after user input, the autotour doesn't restart at the point of interruption (current step) but at current step plus 1 ^^
Code
<action name="startup">
<!-- build the thumbnails (remove the next line to remove the thumbnails) -->
buildthumbs();
set(step,1);
set(idletime,4);
set(events.onidle, autotour() );
</action>
<action name="autotour">
oninterrupt(break);
if(step == 1, loadscene(scene_baghahouddin, null, MERGE, ZOOMBLEND(1,2) ); lookto(360, get(view.vlookat),get(view.fov), smooth(2,2,5), false); inc(step); );
if(step == 2, loadscene(scene_chor-bakr-2569, null, MERGE, ZOOMBLEND(1,2) ); lookto(360, get(view.vlookat),get(view.fov), smooth(2,2,5), false); inc(step); );
if(step == 3, loadscene(scene_chor-minor, null, MERGE, ZOOMBLEND(1,2) ); lookto(360, get(view.vlookat),get(view.fov), smooth(2,2,5), false); inc(step); );
...
...
if(step == 11, tourdone(); set(step,1); );
</action>
Display More