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