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

View File

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