Hey Cameni !
... im trying to get my turning lights working and i got a little thought. There is that "lights_off " method, could there be an method, where you can select one of the light-sources to turn off ?
My code looks like :
if ( time.getMilliseconds() < 500 ) {
lightblinker = 1;
}
else {
lightblinker = 0;
}
if ( this.automaticTransmission == true ) {
if (this.started == true) {
if ( steerAngle < -1 ) {
if ( lightblinker == 1 ) {
this.geom.set_mesh_visible_id(this.slightr_id, false);
this.geom.set_mesh_visible_id(this.LONAll13_id, true);
}
this.light(8, lightblinker > 0);
this.light(10, lightblinker > 0);
}
else {
this.geom.set_mesh_visible_id(this.slightr_id, true);
this.geom.set_mesh_visible_id(this.LONAll13_id, false);
}
if ( steerAngle > 1 ) {
if ( lightblinker == 1 ) {
this.geom.set_mesh_visible_id(this.slightl_id, false);
this.geom.set_mesh_visible_id(this.LONAll12_id, true);
}
this.light(7, lightblinker > 0);
this.light(9, lightblinker > 0);
}
else {
this.geom.set_mesh_visible_id(this.slightl_id, true);
this.geom.set_mesh_visible_id(this.LONAll12_id, false);
}
}
}
... thing is, when i get the steer-angle back to zero, while lightblinker being 1 the light stays on, (from that same reason i have those hiding-scripts for the bulbs in the "else" argument right after). So a selective turn-off script would be handy for me.