The best way to get started with JetScript is the creating a new plugin tutorial.
simulator
object is the primary interface to the simulator, and to obtaining resources like commands and datarefs.Dataref
objects are used to access values read and write values used by the simulator and other plugins.Command
objects signal the beginning or end of discrete events.Plugin
objects represents plugins in the simulator.Timer
s are used to schedule events in the future.Fetch:
fetch()
fetches a resource from the web.UI Prompts:
alert()
is the standard alert window, just as in a web browser.confirm()
is the standard confirmation window, just as in a web browser.prompt()
is the standard prompt window, just as in a web browser.Callbacks / timers:
setInterval()
creates a recurring timer event.setTimeout()
creates a one-time timer event.clearInterval()
cancels a recurring timer event.clearTimeout()
cancels a one-time timer event.Here are other similar resources for X-Plane. While JetScript aims to eventually surpass these options in terms of functionality and performance, they may be better options for now!