2,736
edits
Red Leader (talk | contribs) (→rand(): Basic doc for registerFlightPlanDelegate(). More doc will be added to Nasal Flightplan in future) |
Red Leader (talk | contribs) |
||
| Line 1,958: | Line 1,958: | ||
=== removecommand() === | === removecommand() === | ||
{{Nasal doc | |||
|syntax = removecommand(cmd); | |||
|source = {{flightgear file|src/Scripting/NasalSys.cxx|l=668|t=Source}} | |||
|text = | |||
{{caution{{!}}1{{=}}This will remove '''any''' [[fgcommands{{!}}fgcommand]], even those implemented in C++, so use with caution!}} | |||
Returns <code>'''nil'''</code>. | |||
|param1 = cmd | |||
|param1text = String specifying the name of the command to remove. | |||
|example1 = addcommand("hello", func(){ | |||
print("Hello"); | |||
}); | |||
fgcommand("hello"); # "Hello" will be printed | |||
removecommand("hello"); # removes it | |||
}} | |||
=== removelistener() === | === removelistener() === | ||