mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
8b53b4f0d0
Moved macros to function Fixed MP bugs Changed class history of nozzle
30 lines
600 B
Plaintext
30 lines
600 B
Plaintext
/*
|
|
* Author: GitHawk, Jonpas
|
|
* Handles medical on unconscious event.
|
|
*
|
|
* Arguments:
|
|
* 0: Unit <OBJECT>
|
|
* 1: Is Unconscious <BOOL>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [player, true] call ace_refuel_fnc_handleUnconscious
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit", "_isUnconscious"];
|
|
|
|
if (!local _unit || {!_isUnconscious}) exitWith {};
|
|
|
|
private "_nozzle";
|
|
|
|
[_unit, QGVAR(vehAttach), false] call EFUNC(common,setForceWalkStatus);
|
|
_nozzle = _unit getVariable [QGVAR(nozzle), objNull];
|
|
if !(isNull _nozzle) then {
|
|
[_unit, _nozzle] call FUNC(dropNozzle);
|
|
};
|