Files
DayZ-Epoch/SQF/dayz_code/medical/epinephrine.sqf
2014-01-12 16:04:03 +01:00

22 lines
566 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";
sleep 3;
if (!_isDead) then {
_unit setVariable ["NORRN_unconscious", false, true];
_unit setVariable ["USEC_isCardiac",false,true];
sleep 5;
/* PVS/PVC - Skaronator */
PVDZE_send = [_unit,"Epinephrine",[_unit,player,"ItemEpinephrine"]];
publicVariableServer "PVDZE_send";
};
r_action = false;