Searchlight-Options vbox false false true 3 var p = getprop("/sim/model/searchlight/cone-visibility"); setprop("/sim/model/searchlight/cone_flag_0",0); setprop("/sim/model/searchlight/cone_flag_1",0); setprop("/sim/model/searchlight/cone_flag_2",0); setprop("/sim/model/searchlight/cone_flag_3",0); if ( p == 0 ) { setprop("/sim/model/searchlight/cone_flag_0",1); } if ( p == 1 ) { setprop("/sim/model/searchlight/cone_flag_1",1); } if ( p == 2 ) { setprop("/sim/model/searchlight/cone_flag_2",1); } if ( p == 3 ) { setprop("/sim/model/searchlight/cone_flag_3",1); } # just kept for educational purposes :-) hbox 1 true left controls/electric/engine/generator /sim/model/searchlight/active table 5 left 0 0 left 0 1 left 0 2 left /sim/model/searchlight/cone_flag_0 true dialog-apply nasal 0 3 left /sim/model/searchlight/cone_flag_1 true dialog-apply nasal 1 2 left /sim/model/searchlight/cone_flag_2 true dialog-apply nasal 1 3 left /sim/model/searchlight/cone_flag_3 true dialog-apply nasal hbox 3