mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fix #1439
This commit is contained in:
parent
2bf2b5737a
commit
ee85aab791
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user