Howto:Write simple scripts in Nasal: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
No edit summary
mNo edit summary
Line 32: Line 32:


<pre>}</pre>
<pre>}</pre>
'''Including the nasal file in the -set file:'''
To make sure our aircraft "knows" about this nasal file, we will need to add a section to the main aircraft -set.xml (in this case, fokker50-set.xml of course).
Here's the relevant XML, which I put at the bottom immediately above the closing </propertylist>:
<pre>
<nasal>
  <fokker50>
  <file>Aircraft/fokker50/Systems/degftodegc.nas</file>
  </fokker50>
</nasal>
</pre>
'''Crunch Time, or, testing our function:'''
Now, we can start FlightGear to test our new function. Start FG in the usual manner with the appropriate aircraft.
57

edits

Navigation menu