Déclencher un script à partir de plusieurs controls
Bonjour,
Je cherche à démarrer un script en cas de changement de deux controls.
Mon scritp actuel se déclenche sur le control MON['Light_Left'] mais je voudrais qu'il puisse aussi se déclencher sur le control MON['Light_Right']
Code:
1 2 3 4 5 6 7 8 9 10
| Mon['Light_Left'].EventHandler = function()
if Mon['Light_Left'].String ~= 'S16-01'
then Controls['Backlot'].Boolean = false
end
if (Mon['Light_Left'].String >='S16-01'and Mon['Light_Left'].String <='S19-03') and (Mon['Light_Right'].String =='S19-03')
then Controls['Backlot'].Boolean = true
end
end |
Merci
Jay