ACE3/addons/common/functions/fnc_muteUnitHandleRespawn.sqf
2015-05-14 20:06:06 +02:00

11 lines
321 B
Plaintext

// by commy2
#include "script_component.hpp"
PARAMS_1(_unit);
// 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);