ACE3/addons/rearm/functions/fnc_handleUnconscious.sqf

24 lines
453 B
Plaintext
Raw Normal View History

/*
* Author: GitHawk, Jonpas
* Handles medical on unconscious event.
*
* Arguments:
* 0: Unit <OBJECT>
* 1: Is Unconscious <BOOL>
*
* Return Value:
* None
*
* Example:
* [unit] call ace_rearm_fnc_handleUnconscious
*
* Public: No
*/
#include "script_component.hpp"
2016-02-01 19:21:20 +00:00
params [["_unit", objNull, [objNull]], ["_isUnconscious", false, [false]]];
if (!local _unit || {!_isUnconscious}) exitWith {};
[_unit, false, false] call FUNC(dropAmmo);