mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
5e396a3793
This reverts commit 4d1a5194ea
.
24 lines
415 B
Plaintext
24 lines
415 B
Plaintext
/*
|
|
* Author: GitHawk, Jonpas
|
|
* Handles medical on set dead event.
|
|
*
|
|
* Arguments:
|
|
* 0: Unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [unit] call ace_rearm_fnc_handleKilled
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params [["_unit", objNull, [objNull]]];
|
|
|
|
if (!local _unit) exitWith {};
|
|
|
|
_unit setVariable [QGVAR(selectedWeaponOnRearm), nil];
|
|
[_unit, false, false] call FUNC(dropAmmo);
|