2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-11-08 18:37:56 +00:00
|
|
|
/*
|
|
|
|
* Author: BaerMitUmlaut
|
2016-11-09 18:01:55 +00:00
|
|
|
* Gives the unit a second chance and prevents death for 1 second.
|
2016-11-08 18:37:56 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The Unit <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2019-03-30 16:07:54 +00:00
|
|
|
* Example:
|
|
|
|
* [player] call ace_medical_statemachine_fnc_transitionSecondChance
|
|
|
|
*
|
2016-11-08 18:37:56 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
2018-08-02 14:02:10 +00:00
|
|
|
|
2016-11-08 18:37:56 +00:00
|
|
|
params ["_unit"];
|
|
|
|
|
2018-07-15 14:24:04 +00:00
|
|
|
_unit setVariable [QEGVAR(medical,deathBlocked), true];
|
2016-11-08 18:37:56 +00:00
|
|
|
[{
|
2018-07-15 14:24:04 +00:00
|
|
|
_this setVariable [QEGVAR(medical,deathBlocked), false];
|
2016-11-08 18:37:56 +00:00
|
|
|
}, _unit, 1] call CBA_fnc_waitAndExecute;
|