I added a block of code.
- Code: Select all
########## Fuel System ##########
setlistener("/sim/signals/fdm-initialized", func {
print("Fuel Nasal Controls: Initializing, please wait");
}
var timerctrfuel = func(fuelsys){
if ((/controls/fuel/tank[2]/pump-left == 0) and (/controls/fuel/tank[2]/pump-right == 0)) {
setprop("consumables/fuel/tank[2]/selected",0);
} else {
boeing737.fuelsys();
}}
Hi! Is there a problem here? Showing a parse error on the second to last line.
The common.xml shows
- Code: Select all
<nasal>
...
<boeing737>
...
<file>Aircraft/737-800/Nasal/systems.nas</file>
...
</boeing737>
Probably an obvious error, but I can't find it. Out of practice with nasal!
I thought you needed the 'boeing737' part of the function 'repeat' code?