Sorry im too keen got that all sorted just seem to have an error in line 2 ?
last_cutoff = 0;
setlistener("/engines/engine[0]/cutoff", func {
var new_cutoff = cmdarg().getBoolValue();
if (new_cutoff and !last_cutoff) {
setprop("/engines/engine[0]/reversed", 1);
}
last_cutoff = new_cutoff;
}, 1);
Nasal parse error: illegal character
in /opt/flightgear/share/FlightGear/Aircraft/737-300/engine.nas, line 2
Can you help ?
Cheers.
P.S. If we ever meet remind me how many drinks i owe you ;)
Justin Smithies
On Monday 06 March 2006 13:08, Melchior FRANZ wrote:
> * Justin Smithies -- Monday 06 March 2006 14:07:
> > Getting errors saying it could not read script file engine.nas into
> > module engine.
>
> Then this file isn't in the right place.
>
> > Could it be that the values for the cuttoff and reverse should be true or
> > false not 0 or 1 .
>
> no.
>
> > <file>Aircraft/737-300/Systems/engine.nas</file>
>
> And? Is that file there?
>
> m.
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live
> webcast and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Flightgear-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel