Difference between revisions of "Fsx connected"

From Sim Innovations Wiki
Jump to navigation Jump to search
(<syntaxhighlight> instead of <source>)
(Back to source)
Line 20: Line 20:
== Example ==
== Example ==


<syntaxhighlight lang="lua">
<source lang="lua">
if fsx_connected() then
if fsx_connected() then
   print("We are connected to FSX!")
   print("We are connected to FSX!")
end
end
</syntaxhighlight>
</source>

Revision as of 12:32, 12 September 2019

Description

connected = fsx_connected()

fsx_connected is used to check if there is an active connected with FSX.

Return value

Argument Type Description
connected Boolean True is connected, otherwise false.

Arguments

This function requires no arguments

Example

if fsx_connected() then
  print("We are connected to FSX!")
end