2015-08-18 21:18:32 +00:00
|
|
|
/*
|
|
|
|
* Author: GitHawk, Jonpas
|
|
|
|
* Handles medical on set dead event.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Unit <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
2015-08-21 20:43:45 +00:00
|
|
|
* [player] call ace_refuel_fnc_handleKilled
|
2015-08-18 21:18:32 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2016-02-02 14:03:06 +00:00
|
|
|
params [["_unit", objNull, [objNull]]];
|
2015-08-18 21:18:32 +00:00
|
|
|
|
|
|
|
if (!local _unit) exitWith {};
|
|
|
|
|
|
|
|
_unit setVariable [QGVAR(selectedWeaponOnRefuel), nil];
|
2016-02-02 14:03:06 +00:00
|
|
|
private _nozzle = _unit getVariable [QGVAR(nozzle), objNull];
|
2015-08-18 21:18:32 +00:00
|
|
|
if !(isNull _nozzle) then {
|
2015-08-22 11:34:24 +00:00
|
|
|
[_unit, _nozzle] call FUNC(dropNozzle);
|
2015-08-18 21:18:32 +00:00
|
|
|
};
|