ACE3/addons/respawn/functions/fnc_handleKilled.sqf

34 lines
632 B
Plaintext
Raw Normal View History

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