2015-09-26 01:16:55 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Handle unconsciousness.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Unit <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [bob] call ace_tacticalladder_fnc_handleUnconscious
|
|
|
|
*
|
2015-09-26 01:16:55 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
params ["_unit"];
|
|
|
|
|
2017-09-12 23:10:49 +00:00
|
|
|
if (!local _unit) exitWith {};
|
|
|
|
|
2017-12-30 13:38:45 +00:00
|
|
|
if (!isNull GETMVAR(ladder,objNull) && {GVAR(ladder) in attachedObjects _unit}) then {
|
2018-04-19 17:20:18 +00:00
|
|
|
[_unit, 1] call FUNC(cancelTLdeploy);
|
2015-09-26 01:16:55 +00:00
|
|
|
};
|