mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
a48db26996
* Disable (un)load patient action if unit is dead but was uncoscious before * Remove handcuffs on death (prevents stand-up ragoll restart), Don't show load patient and captive at the same time * Only allow unloading from outside - fix #5525 as discussed * Also prevent unloading captives from inside * Add debug logging
25 lines
513 B
Plaintext
25 lines
513 B
Plaintext
/*
|
|
* Author: Jonpas
|
|
* Called when a unit dies.
|
|
*
|
|
* Arguments:
|
|
* 0: Unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [bob] call ace_captives_fnc_handleKilled
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
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);
|
|
};
|