2015-02-15 20:55:17 +00:00
|
|
|
/*
|
2015-02-15 22:45:13 +00:00
|
|
|
* Author: commy2, PabstMirror
|
2015-02-15 20:55:17 +00:00
|
|
|
* 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"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-02-15 20:55:17 +00:00
|
|
|
|
|
|
|
//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);
|
2015-02-15 20:55:17 +00:00
|
|
|
};
|