LockOn_Options#
The LockOn_Options table provides several useful parameters and values.
avionics_language#
String representation of avionics language
Usage
cockpit#
Table containing cockpit-related options.
Usage
cockpit_language#
String representation of the cockpit language.
Usage
common_ground_script_path#
String path to the CA (Combined Arms) cockpit scripts.
Usage
common_script_path#
String path to the common cockpit scripts.
Usage
date#
Table containing the current date (day, month, year).
Usage
flight#
Table containing flight-related options.
Usage
Values| Option | Type | Description |
|---|---|---|
| unlimited_fuel | bool | Unlimited fuel |
| g_effects | bool | G-effects enabled |
| radio_assist | bool | Radio assist enabled |
| unlimited_weapons | bool | Unlimited weapons |
| external_view | bool | External view enabled |
| easy_radar | bool | Easy radar mode |
| easy_flight | bool | Easy flight mode |
| external_labels | bool | External labels enabled |
| crash_recovery | bool | Crash recovery enabled |
| immortal | bool | Invincibility enabled |
| tool_tips_enabled | bool | Tool tips enabled |
| padlock | bool | Padlock view enabled |
| aircraft_switching | bool | Aircraft switching enabled |
init_conditions#
Get the state of the spawn. Useful for configuring your aircraft depending on the initial state.
The init_conditions table contains an entry "birth_place" which allows you to differentiate spawn types. The following are the spawn string literals:
- In Air Hot:
string | "AIR_HOT" - On Ground Hot:
string | "GROUND_HOT" - Cold Start:
Unknown(see usage)
Usage
local birth = LockOn_Options.init_conditions.birth_place
if birth == "GROUND_HOT" or birth == "AIR_HOT" then
-- hot start init
else
-- cold start init
end
measurement_system#
String indicating the measurement system in use.
Usage
mission#
Table containing mission-related options.
This does't seem to return anything useful, see do_mission_file("mission") to get the mission file.
Usage
screen#
Table containing screen parameters (aspect, height, width).
Usage
script_path#
String path to the cockpit scripts.
Usage
time#
Table containing the current time (hours, minutes, seconds).
Usage