Difference between revisions of "Xpl command"

From Sim Innovations Wiki
Jump to navigation Jump to search
(Created page with "== Description == '''xpl_command(commandref)''' '''xpl_command''' is used to send a command to X-plane '''xpl_command''' is part of the Air Manager 2.x Instrument Logic...")
 
Line 4: Line 4:


'''xpl_command''' is used to send a command to X-plane
'''xpl_command''' is used to send a command to X-plane
'''xpl_command''' is part of the [[Air Manager 2.x Instrument Logic API|Air Manager 2.x Instrument Logic API]] and [[Air Manager 1.x Instrument Logic API|Air Manager 1.x Instrument Logic API]].


X-plane uses commandrefs, these may be used to send commands to. [[xplane_commandrefs|CommandRefs]]
X-plane uses commandrefs, these may be used to send commands to. [[xplane_commandrefs|CommandRefs]]

Revision as of 11:53, 5 September 2015

Description

xpl_command(commandref)

xpl_command is used to send a command to X-plane

X-plane uses commandrefs, these may be used to send commands to. CommandRefs

Return value

This function won't return any value.

Arguments

# Argument Type Description
1 commandref String Reference to a command from X-plane (see CommandRefs)
2 value Number Optional field. Providing it with 1 will send a BEGIN command, Providing it with 0 will send an END command.

Example

-- Shut down X-plane
xpl_command("sim/operation/quit")