I use ALS secondary lights in my Airbus', and when the pilot moves the view, the spot on the ground is moving around with the view -- only is proper when view centered. How can this be stopped?
Kind Regards,
Josh
I use ALS secondary lights in my Airbus', and when the pilot moves the view, the spot on the ground is moving around with the view -- only is proper when view centered.
In standard, that spotlights are linked to the view position. Unwanted effect is clear - when I changed view from captain to copilot, position of ALS spotlight changed too.
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-x-m",-0.7);
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-y-m",0.1);
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-z-m",-0.4);
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-x-m[1]",-0.7);
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-y-m[1]",0.8);
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-z-m[1]",-0.4);
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-x-m[2]",1.9);
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-y-m[2]",0.45);
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-z-m[2]",0.27);
setprop("sim/rendering/als-secondary-lights/lightspot/lightspot-r",0);
setprop("sim/rendering/als-secondary-lights/lightspot/lightspot-g",0);
setprop("sim/rendering/als-secondary-lights/lightspot/lightspot-b",0);
setprop("sim/rendering/als-secondary-lights/lightspot/size",0.4);
setprop("sim/rendering/als-secondary-lights/lightspot/lightspot-r[1]",0);
setprop("sim/rendering/als-secondary-lights/lightspot/lightspot-g[1]",0);
setprop("sim/rendering/als-secondary-lights/lightspot/lightspot-b[1]",0);
setprop("sim/rendering/als-secondary-lights/lightspot/size[1]",0.4);
setprop("sim/rendering/als-secondary-lights/lightspot/lightspot-r[2]",0);
setprop("sim/rendering/als-secondary-lights/lightspot/lightspot-g[2]",0);
setprop("sim/rendering/als-secondary-lights/lightspot/lightspot-b[2]",0);
setprop("sim/rendering/als-secondary-lights/lightspot/size[2]",3.5);
var chgv=setlistener("sim/current-view/name", func() {
x_o=7.38-getprop("sim/current-view/z-offset-m");
y_o=-0.35-getprop("sim/current-view/x-offset-m");
z_o=1.13-getprop("sim/current-view/y-offset-m");
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-x-m",x_o);
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-y-m",y_o);
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-z-m",z_o);
x_o1=7.38-getprop("sim/current-view/z-offset-m");
y_o1=0.35-getprop("sim/current-view/x-offset-m");
z_o1=1.13-getprop("sim/current-view/y-offset-m");
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-x-m[1]",x_o1);
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-y-m[1]",y_o1);
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-z-m[1]",z_o1);
x_o2=9.98-getprop("sim/current-view/z-offset-m");
y_o2=-getprop("sim/current-view/x-offset-m");
z_o2=1.8-getprop("sim/current-view/y-offset-m");
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-x-m[2]",x_o2);
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-y-m[2]",y_o2);
setprop("sim/rendering/als-secondary-lights/lightspot/eyerel-z-m[2]",z_o2);
});
var alslt=setlistener("systems/electrical/outputs/specific", func() {
pow=getprop("systems/electrical/outputs/specific");
if (pow>20){
setprop("sim/rendering/als-secondary-lights/num-lightspots",3);
} else {
setprop("sim/rendering/als-secondary-lights/num-lightspots",0);
};
});
Notice how inside it seems to stay okay.
Users browsing this forum: No registered users and 8 guests