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