ACE3/addons/respawn/functions/fnc_handleKilled.sqf
2015-01-16 15:24:25 -03:00

34 lines
632 B
Plaintext

/*
Name: ACE_Respawn_fnc_handleKilled
Author(s):
bux578
Description:
Handles the XEH Killed event
Parameters:
0: OBJECT - Killed unit
1: OBJECT - Attacker
Returns:
VOID
*/
#include "script_component.hpp"
private ["_killedUnit"];
_killedUnit = _this select 0;
// Saves the gear when the player is killed
GVAR(unitGear) = [];
if (GVAR(SavePreDeathGear)) then {
GVAR(unitGear) = [_killedUnit] call EFUNC(common,getAllGear);
};
if (missionNamespace getVariable [QGVAR(showFriendlyFireMessage), false]) then {
[_this, FUNC(showFriendlyFireMessage), 2] call EFUNC(common,execRemoteFnc);
};