Skip to content

API: Variables

Dedmen Miller edited this page Jul 14, 2019 · 2 revisions

List of variables and their descriptions

Variable Locality Defaults to
tf_no_auto_long_range_radio
  • Disables automatic distribution of backpack radios to group leaders. May be overwritten at server-level through userconfig.
CBA false
TF_give_personal_radio_to_regular_soldier
  • Enables distribution of commander radios to squadmates.
CBA false
TF_give_microdagr_to_soldier
  • Determines whether or not MicroDAGR is issued.
CBA true
tf_same_sw_frequencies_for_side
  • Generates identical short range radio settings for the entire faction.
CBA false
tf_same_lr_frequencies_for_side
  • Generates identical long range radio settings for the entire faction.
CBA true
TFAR_defaultFrequencies_sr_west
  • Sets the default frequencies for BLUFOR Short-Range Radios. Also sets tf_same_sw_frequencies_for_side = true;.
CBA Random value.
TFAR_defaultFrequencies_sr_east
  • Sets the default frequencies for OPFOR Short-Range Radios. Also sets tf_same_sw_frequencies_for_side = true;.
CBA Random value.
tf_west_radio_code
  • Encryption code for BLUFOR side.
Client _bluefor
tf_east_radio_code
  • Encryption code for OPFOR side.
Client _opfor
tf_guer_radio_code
  • Encryption code for Independent side.
Client _independent
If allied to one of the sides, that side's value is used instead.
tf_radio_channel_name
  • The name of TS channel in "serious" mode.
Client TaskForceRadio
tf_radio_channel_password
  • The password of TS channel in "serious" mode.
Client 123
TF_defaultWestBackpack
  • Long range radio class for BLUFOR side — may be overwritten for a specific faction.
Client tf_rt1523g
TF_defaultEastBackpack
  • Long range radio class for OPFOR side — may be overwritten for a specific faction.
Client tf_mr3000
TF_defaultGuerBackpack
  • Long range radio class for Independent side — may be overwritten for a specific faction.
Client tf_anprc155
TF_defaultWestPersonalRadio
  • Commander radio class for BLUFOR side — may be overwritten for a specific faction.
Client tf_anprc152
TF_defaultEastPersonalRadio
  • Commander radio class for OPFOR side — may be overwritten for a specific faction.
Client tf_fadak
TF_defaultGuerPersonalRadio
  • Commander radio class for Independent side — may be overwritten for a specific faction.
Client tf_anprc148jem
TF_defaultWestRiflemanRadio
  • Squadmate radio class for BLUFOR side — may be overwritten for a specific faction.
Client tf_rf7800str
TF_defaultEastRiflemanRadio
  • Squadmate radio class for OPFOR side — may be overwritten for a specific faction.
Client tf_pnr1000a
TF_defaultGuerRiflemanRadio
  • Squadmate radio class for Independent side — may be overwritten for a specific faction.
Client tf_anprc154
TF_defaultWestAirborneRadio
  • Airborne radio class for BLUFOR side — may be overwritten for a vehicle.
Client tf_anarc210
TF_defaultEastAirborneRadio
  • Airborne radio class for OPFOR side — may be overwritten for a vehicle.
Client tf_mr6000l
TF_defaultGuerAirborneRadio
  • Airborne radio class for Independent side — may be overwritten for a vehicle.
Client tf_anarc164
TF_terrain_interception_coefficient
  • A coefficient defining the level of radio signal interruption caused by terrain.
Client 7.0
TF_max_voice_volume
  • The maximum distance that direct speech travels. When using values over 60 — this should be used together with TFAR_fnc_setVoiceVolume function. Values under 60 — limit the propagation distance of player's speech to a specified radius.
Client 60
player setVariable ["tf_voiceVolume", 0.6, true]
  • The volume (gain level) of direct speech — does not affect the propagation distance. Works similar to <a href="//community.bistudio.com/wiki/fadeSound">fadeSound</a>.
Client 1.0
player setVariable ["tf_unable_to_use_radio", true]
  • If true — player is unable to use radio.
Client false
player setVariable ["tf_globalVolume", 0.4]
  • Global volume for radio and speech. Works similar to fadeSound.
Client 1.0
player setVariable ["tf_receivingDistanceMultiplicator", 2]
  • A multiplier for increasing, or lowering the distance from transmitter to receiver (player).
Client 1.0
player setVariable ["tf_sendingDistanceMultiplicator", 0.5]
  • A multiplier for increasing or lowering the range of transmission.
Client 1.0
faction class_backpack_tf_faction_radio
  • Overwrites the long range radio class for a faction. To get "faction class" — use the faction command.
Client
faction class_personal_tf_faction_radio
  • Overwrites the commander radio class for a faction. To get "faction class" — use the faction command.
Client
faction class_rifleman_tf_faction_radio
  • Overwrites the squadmate radio class for a faction. To get "faction class" — use the faction command.
Client
faction class_airborne_tf_faction_radio
  • Overwrites the airborne radio class for a faction. To get "faction class" — use the faction command.
Client
TFAR_defaultFrequencies_sr_independent
  • Sets the default frequencies for Independent Short-Range Radios. Also sets tf_same_sw_frequencies_for_side = true;.
Server Random value.
TFAR_defaultFrequencies_lr_west
  • Sets the default frequencies for BLUFOR Long-Range Radios. Also sets tf_same_sw_frequencies_for_side = true;.
Server Random value.
TFAR_defaultFrequencies_lr_east
  • Sets the default frequencies for OPFOR Long-Range Radios. Also sets tf_same_sw_frequencies_for_side = true;.
Server Random value.
TFAR_defaultFrequencies_lr_independent
  • Sets the default frequencies for Independent Long-Range Radios. Also sets tf_same_lr_frequencies_for_side = true;.
Server Random value.
(group player) getVariable ["tf_sw_frequency"]
  • Stores the settings of short range radios for a group. Read this value only after a call (once) to TFAR_fnc_processGroupFrequencySettings.
Client Random value.
(group player) getVariable ["tf_lr_frequency"]
  • Stores the settings of long range radios for a group. Read this value only after a call (once) to TFAR_fnc_processGroupFrequencySettings.
Client Random value.
_vehicle setVariable ["tf_side", _value, true]
  • Forces side designation of a vehicle, and as a consequence, also the type of radios used.
Client "west"/"east"/"guer"
_vehicle setVariable ["tf_hasRadio", true, true]
  • Forces the presence of a vehicle-mounted radio.
Global
_vehicle setVariable ["tf_isolatedAmount", 0.5, true]
  • Sets the level of isolation for a vehicle. With values over 0.5 — it will be impossible to hear any outside speech from inside the vehicle (and vice versa).
Global 0.0
_vehicle setVariable ["tf_range", 50000, true]
  • Sets the maximum range of transmission for a vehicle-mounted radio.
Global 30000
_vehicle setVariable ["TF_RadioType", "tf_mr6000l", true]
  • Sets the type of a vehicle-mounted radio. Must be a radio from long range class.
Global Long range radio of a faction.
TF_speakerDistance
  • The propagation distance of sound from radio speakers.
Client 20
Clone this wiki locally