ACE3/addons/common/functions/fnc_muteUnitHandleRespawn.sqf

11 lines
321 B
Plaintext
Raw Normal View History

2015-04-12 08:05:49 +00:00
// by commy2
#include "script_component.hpp"
2015-05-14 18:06:06 +00:00
PARAMS_1(_unit);
2015-04-12 08:05:49 +00:00
// setVariable is broken on JIP after respawn
_unit setVariable [QGVAR(muteUnitReasons), _unit getVariable [QGVAR(muteUnitReasons), []], true];
// fix mp issues with respawning and the speaker
["setSpeaker", [_unit, speaker _unit]] call FUNC(globalEvent);