2015-08-18 21:18:32 +00:00
|
|
|
/*
|
|
|
|
* Author: GitHawk, Jonpas
|
|
|
|
* Handles medical on unconscious event.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Unit <OBJECT>
|
|
|
|
* 1: Is Unconscious <BOOL>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
2015-08-21 20:43:45 +00:00
|
|
|
* [player, true] call ace_refuel_fnc_handleUnconscious
|
2015-08-18 21:18:32 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
params ["_unit", "_isUnconscious"];
|
|
|
|
|
|
|
|
if (!local _unit || {!_isUnconscious}) exitWith {};
|
|
|
|
|
|
|
|
private "_nozzle";
|
|
|
|
|
|
|
|
[_unit, QGVAR(vehAttach), false] call EFUNC(common,setForceWalkStatus);
|
2015-08-20 20:10:26 +00:00
|
|
|
_nozzle = _unit getVariable [QGVAR(nozzle), objNull];
|
2015-08-18 21:18:32 +00:00
|
|
|
if !(isNull _nozzle) then {
|
|
|
|
REFUEL_UNIT_DROP_NOZZLE
|
|
|
|
};
|