simulator.findCommand() Method

The simulator.findCommand() method locates a command by name, returning an object that can then be used to activate the command.

Syntax

simulator.findCommand(name)

Parameters

Return value

If the command exists, a Command object is returned.

Example

> ident = simulator.findCommand("sim/transponder/transponder_ident")
Command{ name: "sim/transponder/transponder_ident" }
> ident.once()
undefined

References