ACE3/addons/common/functions/fnc_muteUnitHandleInitPost.sqf

10 lines
298 B
Plaintext
Raw Normal View History

// by commy2
#include "script_component.hpp"
2015-05-14 18:06:06 +00:00
PARAMS_1(_unit);
// setSpeaker gets overwritten after init on remote units; if unit is muted, setSpeaker again
if (count (_unit getVariable [QGVAR(muteUnitReasons), []]) > 0) then {
["setSpeaker", [_unit, "ACE_NoVoice"]] call FUNC(localEvent);
};