Nasal library: Difference between revisions

Jump to navigation Jump to search
→‎removelistener(): Oops, forgot source links
(→‎removelistener(): Finish doc)
(→‎removelistener(): Oops, forgot source links)
Line 1,975: Line 1,975:
{{Nasal doc
{{Nasal doc
|syntax = removelistener(id);
|syntax = removelistener(id);
|source = {{flightgear file|src/Scripting/NasalSys.cxx|l=1384|t=Part 1}} {{!}} {{flightgear file|src/Scripting/NasalSys.cxx|l=506|t=Part 2}}
|text = Removes and deactivates the given listener and returns the number of listeners left or <code>'''nil'''</code> on error.
|text = Removes and deactivates the given listener and returns the number of listeners left or <code>'''nil'''</code> on error.
{{note|It is good practice to remove listeners when they are not required anymore. This prevents the listeners reducing FlightGear's run performance.}}
{{note|It is good practice to remove listeners when they are not required anymore. This prevents the listeners reducing FlightGear's run performance.}}

Navigation menu