Using listeners and signals with Nasal: Difference between revisions

Jump to navigation Jump to search
Line 211: Line 211:


* <tt>/sim/signals/exit</tt> ... set to "true" on quitting FlightGear
* <tt>/sim/signals/exit</tt> ... set to "true" on quitting FlightGear
* <tt>/sim/signals/reinit</tt> ... set to "true" right before resetting FlightGear (Shift-Esc), and to "false" afterwards
* <tt>/sim/signals/reinit</tt> ... set to "true" right before repositioning the aircraft, and to "false" when the teleport has been completed
* <tt>/sim/signals/click</tt> ... set to "true" after a mouse click at the terrain. Hint that the geo coords for the click spot were updated and can be retrieved from /sim/input/click/{longitude-deg,latitude-deg,elevation-ft,elevation-m}
* <tt>/sim/signals/click</tt> ... set to "true" after a mouse click at the terrain. Hint that the geo coords for the click spot were updated and can be retrieved from /sim/input/click/{longitude-deg,latitude-deg,elevation-ft,elevation-m}
* <tt>/sim/signals/screenshot</tt> ... set to "true" right before the screenshot is taken, and set to "false" after it. Can be used to hide and reveal dialogs etc.
* <tt>/sim/signals/screenshot</tt> ... set to "true" right before the screenshot is taken, and set to "false" after it. Can be used to hide and reveal dialogs etc.
60

edits

Navigation menu