mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
510 B
Plaintext
25 lines
510 B
Plaintext
/*
|
|
* Author: commy2 PabstMirror
|
|
* Fix, because captiveNum doesn't reset properly on respawn
|
|
*
|
|
* Arguments:
|
|
* 0: Unit <OBJECT>
|
|
* 1: Corpse <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Nothing
|
|
*
|
|
* Example:
|
|
* [alive, body] call ACE_captives_fnc_handleRespawn;
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
PARAMS_2(_unit,_dead);
|
|
|
|
if (!local _unit) exitWith {};
|
|
|
|
[_unit, QGVAR(Handcuffed), false] call EFUNC(common,setCaptivityStatus);
|
|
[_unit, QGVAR(Surrendered), false] call EFUNC(common,setCaptivityStatus);
|