ACE3/addons/common/functions/fnc_endRadioTransmission.sqf

40 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

#include "..\script_component.hpp"
/*
* Author: commy2
*
2021-09-25 16:14:17 +00:00
* End radio transmissions of addons TFAR and ACRE2. TFAR v0.9.x, ACRE Public Beta 2.0.3.571, TFAR v1.0.-1.x
*
* Arguments:
2015-09-20 18:25:25 +00:00
* None
*
* Return Value:
2015-09-20 18:25:25 +00:00
* None
*
* Example:
* call ace_common_fnc_endRadioTransmission
*
2015-09-20 18:25:25 +00:00
* Public: No
*/
["ace_endRadioTransmissions"] call CBA_fnc_localEvent;
// ACRE
if (["acre_main"] call FUNC(isModLoaded)) then {
[-1] call acre_sys_core_fnc_handleMultiPttKeyPressUp;
[0] call acre_sys_core_fnc_handleMultiPttKeyPressUp;
[1] call acre_sys_core_fnc_handleMultiPttKeyPressUp;
[2] call acre_sys_core_fnc_handleMultiPttKeyPressUp;
};
// TFAR
if (["task_force_radio"] call FUNC(isModLoaded)) then {
if (["tfar_core"] call FUNC(isModLoaded)) exitWith { // Beta TFAR, exit to avoid script errors from legacy functions not existing
2021-09-25 16:14:17 +00:00
ACE_Player call TFAR_fnc_releaseAllTangents;
};
2015-02-19 18:14:52 +00:00
call TFAR_fnc_onSwTangentReleased;
call TFAR_fnc_onAdditionalSwTangentReleased;
call TFAR_fnc_onLRTangentReleased;
call TFAR_fnc_onAdditionalLRTangentReleased;
call TFAR_fnc_onDDTangentReleased;
};