ACE3/addons/tacticalladder/functions/fnc_handleUnconscious.sqf

25 lines
419 B
Plaintext
Raw Normal View History

/*
* Author: commy2
* Handle unconsciousness.
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* None
*
* Example:
* [bob] call ace_tacticalladder_fnc_handleUnconscious
*
* Public: No
*/
#include "script_component.hpp"
params ["_unit"];
if (!local _unit) exitWith {};
2017-12-30 13:38:45 +00:00
if (!isNull GETMVAR(ladder,objNull) && {GVAR(ladder) in attachedObjects _unit}) then {
[_unit, 1] call FUNC(cancelTLdeploy);
};