This commit is contained in:
bux578
2015-06-04 14:30:38 +02:00
parent 2bf2b5737a
commit ee85aab791

View File

@ -17,16 +17,16 @@
#include "script_component.hpp"
private ["_killedUnit"];
PARAMS_1(_killedUnit);
_killedUnit = _this select 0;
// Saves the gear when the player is killed
// Saves the gear when the player! (and only him) is killed
if (ACE_player == _killedUnit) then {
GVAR(unitGear) = [];
if (GVAR(SavePreDeathGear)) then {
GVAR(unitGear) = [_killedUnit] call EFUNC(common,getAllGear);
};
};
if (missionNamespace getVariable [QGVAR(showFriendlyFireMessage), false]) then {
[_this, QUOTE(DFUNC(showFriendlyFireMessage)), 2] call EFUNC(common,execRemoteFnc);