Searchlight-Optionsvboxfalsefalsetrue3
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 :-)hbox1trueleftcontrols/electric/engine/generator/sim/model/searchlight/activetable5left0