Skip to content

Commit

Permalink
Merge branch 'add-kill-heal' into 'master'
Browse files Browse the repository at this point in the history
Add ace medical healing to onKilled

This merge add healing to onKilled. This will fix issue where injured player is killed and stays injured when moved to dead area.

See merge request !8
  • Loading branch information
nikolauska committed Aug 12, 2016
2 parents ef0337c + 8adfa59 commit cb405ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/respawn/functions/fnc_onKilled.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ if (["task_force_radio"] call EFUNC(common,classExists)) then {
KGE_Player setVariable ["tf_unable_to_use_radio", true];
};

// Do full heal if ace medcal is in use
if(ace_medical) then {
[_unit, _unit] call ace_medical_fnc_treatmentAdvanced_fullHealLocal;
};

GVAR(animationLock) = true;
call FUNC(animationLock);

Expand Down

0 comments on commit cb405ca

Please sign in to comment.