72
edits
No edit summary |
No edit summary |
||
| Line 112: | Line 112: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Add the file runway.nas to your aircraft's Nasal folder | Add the file runway.nas to your aircraft's Nasal folder. | ||
=== Functions === | == Nasal/runway.nas == | ||
The following example listens to /gear/on-ground and overrides a number of properties of the takeoff_config object so that it can be used for large airliners. | |||
=== Step 1 of 3: Functions === | |||
First, create a number of functions to format and print messages: | First, create a number of functions to format and print messages: | ||
| Line 156: | Line 160: | ||
{{tip|You might want to replace copilot_say().}} | {{tip|You might want to replace copilot_say().}} | ||
=== Announcers === | === Step 2 of 3: Announcers === | ||
Second, create configuration objects, override some of their parameters, create the announcers, and then connect the various signals to callbacks: | Second, create configuration objects, override some of their parameters, create the announcers, and then connect the various signals to callbacks: | ||
| Line 198: | Line 202: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Listeners === | === Step 3 of 3: Listeners === | ||
Finally, set up a listener to detect when the aircraft is on the ground and when it is airborne: | Finally, set up a listener to detect when the aircraft is on the ground and when it is airborne: | ||
edits