1
0
Fork 0
fgdata/Aircraft/c172p/Nasal/tanks.nas
Stuart Buchanan f44db83b25 Merge of the c172p-detailed
From https://github.com/Juanvvc/c172p-detailed/ release/2016.1
commit 3f33b88bb015a8ee685ab3178932d16d6e072410

A big Thank-You to the c172p-detailed team for their ongoing work.
2016-02-10 21:32:19 +00:00

12 lines
425 B
Text

#
# Listeners to tie the /consumables/fuels/tank[]/selected to
# /fdm/jsbsim/propulsion/tank[]/priority
setlistener("consumables/fuel/tank[0]/selected", func(selected) {
setprop("/fdm/jsbsim/propulsion/tank[0]/priority", selected.getBoolValue() ? 1 : 0);
});
setlistener("consumables/fuel/tank[1]/selected", func(selected) {
setprop("/fdm/jsbsim/propulsion/tank[1]/priority", selected.getBoolValue() ? 1 : 0);
});