Xlua Variables¶
py:module:: utils.xlua
To use:
from XPPython3.utils import xlua
For convenience, Xlua pre-defines some variables. They’re actually just pre-mapped datarefs.
>>> xlua.IN_REPLAY
False
>>> xlua.PAUSED
False
>>> xlua.SIM_PERIOD
0.221887
>>> xlua.RUNNING_TIME
123.333
>>> xlua.FLIGHT_TIME
35.1233
IN_REPLAY |
Boolean for |
PAUSED |
Boolean for |
SIM_PERIOD |
Value of |
RUNNING_TIME |
Number of seconds the sim has been running: does not increment
when sim is paused. (Use this for animation)
|
FLIGHT_TIME |
Number of seconds of this flight. Changing user aircraft or
changing the airport will reset flight_time to
zero. |
