The simulator.findCommand()
method locates a command by name, returning an object that can then be used to activate the command.
name
name
: The name of the command, e.g. sim/transponder/transponder_ident
If the command exists, a Command
object is returned.
> ident = "sim/transponder/transponder_ident"
Command
>
undefined
Command
object, returned by this functionXPLMFindCommand
is the C-API used by this function.find_command
functionglobalProperty