ACE3/addons/captives/functions/fnc_handleKilled.sqf

27 lines
530 B
Plaintext
Raw Normal View History

2015-02-04 06:35:51 +00:00
/*
* Author: PabstMirror
* Handles when a unit is kill. Reset captivity and escorting status when getting killed
*
* Arguments:
* 0: _oldUnit <OBJECT>
*
* Return Value:
* None
*
* Example:
* -
*
* Public: No
*/
#include "script_component.hpp"
PARAMS_1(_oldUnit);
2015-02-05 22:39:45 +00:00
if (_oldUnit getVariable [QGVAR(isHandcuffed), false]) then {
_oldUnit setVariable [QGVAR(isHandcuffed), false, true];
2015-02-04 06:35:51 +00:00
};
2015-02-04 19:16:19 +00:00
if (_oldUnit getVariable [QGVAR(isEscorting), false]) then {
_oldUnit setVariable [QGVAR(isEscorting), false, true]
2015-02-04 06:35:51 +00:00
};