if(startscene === null, copy(startscene,scene[0].name)); loadscene(get(startscene), null, MERGE);
set(plugin[centerphoto].url, %1);
set(plugin[centerphoto].width, %2);
set(plugin[centerphoto].height, %3);
tween(plugin[centerphoto].alpha,1,1);
tween(plugin[centerphoto].align,center);
tween(plugin[centerphoto].scale, 1,1);
set(plugin[spot1].zorder,2);
set(plugin[spot2].zorder,2);
set(plugin[spot3].zorder,1);
set(plugin[spot4].zorder,2);
set(plugin[spot5].zorder,2);
set(plugin[spot6].zorder,2);
set(plugin[spot7].zorder,2);
set(plugin[activespot].parent, spot3);
set(plugin[radar].heading, 150);
set(plugin[radarmask].url, '%FIRSTXML%/map/radarmask.png');
loadscene(get(title), null, MERGE, BLEND(0.5));
set(cur_hlookat, %2); copy(cur_vlookat, view.vlookat); sub(rxang, -90, get(view.vlookat)); sub(rzang, get(hotspot[%1].north), get(cur_hlookat)); set(hotspot[%1].ath, get(cur_hlookat)); if (cur_vlookat GT %3, set(hotspot[%1].atv, get(cur_vlookat)); add(hotspot[%1].atv, 30); );
sub(getverticalewaarde,get(cur_vlookat),-20); div(alphawaarde,get(getverticalewaarde),15); set(hotspot[%1].alpha, get(alphawaarde)); set(hotspot[%1].rx, get(rxang)); set(hotspot[%1].rz, get(rzang)); copy(vlookat_dif, view.vlookat); sub(vlookat_dif, %3); Math.abs(vlookat_dif); mul(vlookat_dif, Math.PI); div(vlookat_dif, 180); Math.cos(vlookat_dif); mul(vlookat_dif, 30); sub(hotspot[%1].rx, vlookat_dif); sub(cur_ox, get(cur_hlookat), get(hotspot[%1].north)); mul(cur_ox, Math.PI); div(cur_ox, 180); Math.sin(cur_ox); mul(cur_ox, get(hotspot[%1].d)); sub(cur_oy, get(cur_hlookat), get(hotspot[%1].north)); mul(cur_oy, Math.PI); div(cur_oy, 180); Math.cos(cur_oy); mul(cur_oy, get(hotspot[%1].d)); if (hotspot[%1].shown == true, set(hotspot[%1].atv, 40);
set(hotspot[%1].shown, false); ); set(hotspot[%1].ox, 0);
set(hotspot[%1].oy, 0);