mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Do not use hideBody as command without the action. It just hides the body but it still can be geared. If using hideBody in correlation with deleteVehicle it breaks the allDead command. player action ["hideBody", body] deletes the body and the marker from the map but it stays inside allDead. This fixes the issue that hided players were still shown on the map and still searched for their body. Needs additional testing for a new release.
16 lines
385 B
Plaintext
16 lines
385 B
Plaintext
if (dayz_actionInProgress) exitWith {localize "str_player_actionslimit" call dayz_rollingMessages;};
|
|
dayz_actionInProgress = true;
|
|
|
|
private "_body";
|
|
|
|
player removeAction s_player_hide_body;
|
|
s_player_hide_body = -1;
|
|
|
|
closeDialog 0;
|
|
|
|
_body = _this select 3;
|
|
if (isNull _body) exitWith { dayz_actionInProgress = false;};
|
|
|
|
player action ["hideBody", _body];
|
|
|
|
dayz_actionInProgress = false; |