ACE3/addons/common/functions/fnc_unmuteUnit.sqf
2015-01-13 20:56:02 +01:00

24 lines
443 B
Plaintext

/*
* Author: commy2
*
* Unmutes the unit.
*
* Argument:
* 0: Unit (Object)
*
* Return value:
* Nothing
*/
#include "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);