ACE3/addons/captives/functions/fnc_handleKnockedOut.sqf

26 lines
480 B
Plaintext
Raw Normal View History

/*
2015-02-15 22:45:13 +00:00
* Author: commy2, PabstMirror
* Handles when a unit gets knocked out. Ends surrendering.
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* Nothing
*
* Example:
* [bob, true] call ACE_captives_fnc_handleKnockedOut
*
* Public: No
*/
#include "script_component.hpp"
//ToDo: Waiting on medical integration
PARAMS_1(_unit);
if (_unit getVariable [QGVAR(isSurrendering), false]) then { //If surrendering, stop
2015-02-17 00:03:09 +00:00
[_unit, false] call FUNC(setSurrendered);
};