mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 01:30:26 +03:00
see the below links for more info. uiSleep is based off of a more accurate method of tracking time, whereas sleep can fluctuate depending on application performance since it is based on framerate. https://community.bistudio.com/wiki/uiSleep https://community.bistudio.com/wiki/sleep_vs_uiSleep https://community.bistudio.com/wiki/sleep
22 lines
570 B
Plaintext
22 lines
570 B
Plaintext
// bleed.sqf
|
|
|
|
private ["_unit","_isDead"];
|
|
_unit = (_this select 3) select 0;
|
|
_isDead = _unit getVariable["USEC_isDead",false];
|
|
call fnc_usec_medic_removeActions;
|
|
[1,1] call dayz_HungerThirst;
|
|
player playActionNow "Medic";
|
|
player removeMagazine "ItemEpinephrine";
|
|
|
|
uiSleep 3;
|
|
|
|
if (!_isDead) then {
|
|
_unit setVariable ["NORRN_unconscious", false, true];
|
|
_unit setVariable ["USEC_isCardiac",false,true];
|
|
uiSleep 5;
|
|
/* PVS/PVC - Skaronator */
|
|
PVDZE_send = [_unit,"Epinephrine",[_unit,player,"ItemEpinephrine"]];
|
|
publicVariableServer "PVDZE_send";
|
|
};
|
|
|
|
r_action = false; |