Skip to content

Commit

Permalink
(spectator) unhide/unmute unit on exiting (#5699)
Browse files Browse the repository at this point in the history
* unhide/unmute unit on exiting

* Update fnc_setSpectator.sqf
  • Loading branch information
Cuel authored and PabstMirror committed Oct 28, 2017
1 parent 05f5373 commit 251c035
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions addons/spectator/functions/fnc_setSpectator.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,13 @@ if (alive player) then {
[player, _hidden, QGVAR(isSet), side group player] call EFUNC(common,switchToGroupSide);

// Ghosts can't talk
[player, QGVAR(isSet)] call EFUNC(common,hideUnit);
[player, QGVAR(isSet)] call EFUNC(common,muteUnit);
if (_hidden) then {
[player, QGVAR(isSet)] call EFUNC(common,hideUnit);
[player, QGVAR(isSet)] call EFUNC(common,muteUnit);
} else {
[player, QGVAR(isSet)] call EFUNC(common,unhideUnit);
[player, QGVAR(isSet)] call EFUNC(common,unmuteUnit);
};
};

// Reset interruptions
Expand Down

0 comments on commit 251c035

Please sign in to comment.