2,736
edits
Red Leader (talk | contribs) (→rand(): Finish docing) |
Red Leader (talk | contribs) (→rand(): Basic doc for registerFlightPlanDelegate(). More doc will be added to Nasal Flightplan in future) |
||
| Line 1,946: | Line 1,946: | ||
|text = Returns a random floating point number between 0 and 1. It takes no arguments. | |text = Returns a random floating point number between 0 and 1. It takes no arguments. | ||
|example1 = print(rand()); # prints random number | |example1 = print(rand()); # prints random number | ||
}} | |||
=== registerFlightPlanDelegate() === | |||
{{Nasal doc | |||
|syntax = registerFlightPlanDelegate(init_func); | |||
|source = {{flightgear file|src/Scripting/NasalPositioned.cxx|l=1879|t=Source}} | |||
|text = Registers a flight plan delegate. See <tt>''{{fgdata file|Nasal/route_manager.nas|t=$FG_ROOT/Nasal/route_manager.nas}}''</tt> for examples. | |||
|param1 = init_func | |||
|param1text = Initialization function which will be called during FlightGear's startup. | |||
}} | }} | ||