2015-01-11 16:42:31 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
*
|
|
|
|
* Unmutes the unit.
|
2015-01-12 04:02:33 +00:00
|
|
|
*
|
2015-01-11 16:42:31 +00:00
|
|
|
* Argument:
|
|
|
|
* 0: Unit (Object)
|
2015-01-12 04:02:33 +00:00
|
|
|
*
|
2015-01-11 16:42:31 +00:00
|
|
|
* Return value:
|
|
|
|
* Nothing
|
|
|
|
*/
|
2015-01-12 11:14:15 +00:00
|
|
|
#include "\z\ace\addons\core\script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
private ["_unit", "_speaker"];
|
|
|
|
|
|
|
|
_unit = _this select 0;
|
|
|
|
|
|
|
|
if (isNull _unit) exitWith {};
|
|
|
|
|
2015-01-12 04:02:33 +00:00
|
|
|
_speaker = _unit getVariable ["ACE_OriginalSpeaker", ""];
|
2015-01-11 16:42:31 +00:00
|
|
|
if (_speaker == "") exitWith {};
|
|
|
|
|
2015-01-12 04:02:33 +00:00
|
|
|
[0, format ["{(_this select 1) setSpeaker '%1'}", _speaker], _unit, "ACE_Speaker"] call FUNC(execPersistentFnc);
|