ACE3/addons/captives/functions/fnc_handleKilled.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

25 lines
516 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Jonpas
* Called when a unit dies.
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* None
*
* Example:
* [bob] call ace_captives_fnc_handleKilled
*
* Public: No
*/
params ["_unit"];
TRACE_1("handleKilled",_unit);
// Remove handcuffs on a dead unit, removing them after unit goes into ragdoll causes a stand-up twitch and restarts the ragdoll
if (_unit getVariable [QGVAR(isHandcuffed), false]) then {
[_unit, false] call FUNC(setHandcuffed);
};