Skip to content

Instantly share code, notes, and snippets.

@Dorbedo
Created July 29, 2018 08:38
Show Gist options
  • Save Dorbedo/b055e7622396db23ecfe4bb354340f43 to your computer and use it in GitHub Desktop.
Save Dorbedo/b055e7622396db23ecfe4bb354340f43 to your computer and use it in GitHub Desktop.
ACE-medical CPR revive
["ace_medical_treatmentAdvanced_CPRLocal",{
params ["_caller","_target"];
if ((_target getVariable ["Ace_medical_inReviveState",false])&&{(random 1) >= 0.80}) then {
_target setVariable ["Ace_medical_inCardiacArrest",true,true];
_target setVariable ["Ace_medical_inReviveState",false,true];
};
}] call CBA_fnc_addEventHandler;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment