Variables - Superxpdude/tmtm_template GitHub Wiki

Common

XPT_mapMarkersList

Type: Array
Array of all map markers generated by the map markers script. Will be a "nil" variable if the map markers script is not running.

Client

Server

XPT_blacklistedMissionObjects

Type: Array
Array of named mission objects that should be excluded from curator editing. Any objects present in this list will not be added as editable to any curator modules in the mission.

XPT_headless_clientID

Type: Scalar
Client ID of the currently connected headless client. = 0 when no HC connected.

XPT_headless_connected

Type: Boolean
True/False if there is a headless client enabled and connected in the mission.

XPT_mapMarkersEnabled

Type: Boolean
Used to disable the map markers script mid-mission. Setting this variable to "false" will cause the map markers script to stop, and delete all current map markers. Automatically set back to "true" when the map markers script is executed.

Object Variables

XPT_loadout

Type: String
Acts as a override for the loadout system autodetection. Useful for forcing certain units to use certain loadouts. If set to "config" (or if not set), the loadout system will try to use the unit classname as a loadout.

XPT_TFAR_SRChannel

Type: Scalar
Assigned in the editor. Sets the default SW channel of a player unit. Accepts scalar values from 0-7

XPT_TFAR_LRChannel

Type: Scalar
Assigned in the editor. Sets the default LR channel of a player unit. Accepts scalar values from 0-8

XPT_TFAR_SRAltChannel

Type: Scalar Assigned in the editor. Sets the default SW additional channel of a player unit. Accepts scalar values from 0-7

XPT_TFAR_SRFreqs

Type: Array Assigned in the editor. Array comprised of sub-arrays. Each sub-array contains a channel index (from 0-7), and a frequency. Values in this array will override the default frequencies assigned for that unit.
Example: If a unit has the following value in their init field: this setVariable ["XPT_TFAR_SRFreqs",[1,115]]. They will have their SW frequency for channel 2 set to 115. Note that the channel index is the channel number -1.

Group Variables

TFAR_SRChannel

Type: Scalar
Assigned in the editor. Sets the default SW channel of all units in a group. Will be overridden by any unit-specific radio settings. Accepts scalar values from 0-7

TFAR_LRChannel

Type: Scalar
Assigned in the editor. Sets the default LR channel of all units in a group. Will be overridden by any unit-specific radio settings. Accepts scalar values from 0-8