In order for this not to happen, the Lvar must be independent of the value of the simvar/lvar of the switch, you just have to code that the Lvar that calls the sound takes value for a few moments and then returns to an initial value regardless of whether the simvar/lvar of the switch remains modified.I realized that if you only use a LocalVar to call a click sound, it no longer works for the other switches.
Indeed, the switch actuated first sets the variable to ON and it remains there as long as the switch is not actuated in the other direction.
What makes that the interacted then with the same variable considers that it is already on ON and does not call any sound.
It's all a matter of coding.
The same for this situation, if the Lvar that calls the sound is independent, you must change its value for each change of ON-OFF-ON-OFF.Anyway, for the 4-position fuel selector, I got around the problem by setting the variable to ON for positions 0 and 2 and to OFF for positions 1 and 3.
And then we get the ON-OFF-ON-OFF sequence.
I use only 1 LVAR to call all the sounds, as you will have seen in my XML code, example: if a switch is activated, its value changes from 0 to 1, my code reads that change, and changes the value of the AIC_SACTION to the value of the sound I want to hear, after a few seconds, I return AIC_SACTION to its initial value, and I can call other sounds, even though the switch at the beginning of the example hasn't changed.