ACE3/addons/core/functions/fnc_unmuteUnit.sqf
2015-01-12 05:14:15 -06:00

24 lines
462 B
Plaintext

/*
* Author: commy2
*
* Unmutes the unit.
*
* Argument:
* 0: Unit (Object)
*
* Return value:
* Nothing
*/
#include "\z\ace\addons\core\script_component.hpp"
private ["_unit", "_speaker"];
_unit = _this select 0;
if (isNull _unit) exitWith {};
_speaker = _unit getVariable ["ACE_OriginalSpeaker", ""];
if (_speaker == "") exitWith {};
[0, format ["{(_this select 1) setSpeaker '%1'}", _speaker], _unit, "ACE_Speaker"] call FUNC(execPersistentFnc);