mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
12 lines
323 B
Plaintext
12 lines
323 B
Plaintext
// by commy2
|
|
#include "script_component.hpp"
|
|
|
|
private "_unit";
|
|
|
|
_unit = _this select 0;
|
|
|
|
// 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);
|
|
};
|