Skip to content

Instantly share code, notes, and snippets.

@dedmen
Created November 9, 2016 02:22
Show Gist options
  • Save dedmen/3a9f7a23ce21d971c1a60555af04d8ec to your computer and use it in GitHub Desktop.
Save dedmen/3a9f7a23ce21d971c1a60555af04d8ec to your computer and use it in GitHub Desktop.
waitUntil {time > 2};//Wait long enough to make sure Curator is initialized
if !([player] call qipTPL_fnc_isVirtualCurator) exitWith {}; //Don't continue running if its not a Curator
waitUntil {call TFAR_fnc_haveSWRadio};
waitUntil {call TFAR_fnc_haveLRRadio};
{
_currentSwRadio = _x;
_currentSwRadioString = (_x splitString "_") select 1;
switch (true) do {
case (_currentSwRadioString == "anprc152"): {
[_currentSwRadio, tf_freq_west] call TFAR_fnc_setSwSettings;
};
case (_currentSwRadioString == "fadak"): {
[_currentSwRadio, tf_freq_east] call TFAR_fnc_setSwSettings;
};
case (_currentSwRadioString == "anprc148jem"): {
[_currentSwRadio, tf_freq_guer] call TFAR_fnc_setSwSettings;
};
default {};
};
true;
} count (player call TFAR_fnc_radiosList);
[TF_curator_backpack_1, "TF_curatorBackPack", tf_freq_west_lr] call TFAR_fnc_setLrSettings;
[TF_curator_backpack_2, "TF_curatorBackPack", tf_freq_east_lr] call TFAR_fnc_setLrSettings;
[TF_curator_backpack_3, "TF_curatorBackPack", tf_freq_guer_lr] call TFAR_fnc_setLrSettings;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment