ACE3/addons/core/functions/fnc_unmuteUnit.sqf

23 lines
413 B
Plaintext
Raw Normal View History

/*
* Author: commy2
*
* Unmutes the unit.
*
* Argument:
* 0: Unit (Object)
*
* Return value:
* Nothing
*/
private ["_unit", "_speaker"];
_unit = _this select 0;
if (isNull _unit) exitWith {};
_speaker = _unit getVariable ["AGM_OriginalSpeaker", ""];
if (_speaker == "") exitWith {};
2015-01-11 18:20:14 +00:00
[0, format ["{(_this select 1) setSpeaker '%1'}", _speaker], _unit, "AGM_Speaker"] call FUNC(execPersistentFnc);