Nasal Loops: Difference between revisions

(updated to describe current best practice regarding settimer loops)
Line 229: Line 229:
Beginning with FlightGear 2.11+ you should consider using the {{func link|maketimer()}} API instead.
Beginning with FlightGear 2.11+ you should consider using the {{func link|maketimer()}} API instead.


This is because maketimer creates an object that can be managed, rather than as settimer which once called will irrevocably call the method once the duration has elapsed. For this reason settimer is considered to be unmanageable.
This is because maketimer creates an object that can be managed, rather than settimer which once called will irrevocably call the method once the duration has elapsed. For this reason settimer is considered to be unmanageable and has been deprecated.


=== maketimer example ===
=== maketimer example ===
306

edits