ACE3/addons/core/functions/fnc_unmuteUnit.sqf

24 lines
462 B
Plaintext
Raw Normal View History

/*
* Author: commy2
*
* Unmutes the unit.
*
* Argument:
* 0: Unit (Object)
*
* Return value:
* Nothing
*/
2015-01-12 11:14:15 +00:00
#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);