mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
d0509830e3
Made params nicer, replaced some forEach and used params in XEH_respawn
27 lines
463 B
Plaintext
27 lines
463 B
Plaintext
/*
|
|
* 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"
|
|
|
|
params [
|
|
["_unit", objNull, [objNull]],
|
|
["_isUnconscious", false, [false]]
|
|
];
|
|
|
|
if (!local _unit || {!_isUnconscious}) exitWith {};
|
|
|
|
[_unit, false, false] call FUNC(dropAmmo);
|