fnc_stitchAllWounds.sqf 541 B

12345678910111213141516171819202122
  1. /*
  2. * Author: M3ales
  3. *
  4. * Arguments:
  5. * The player who is performing the action
  6. * The player who is being healed
  7. * Return Value:
  8. * None
  9. *
  10. * Example:
  11. * [player, player] call rd501_fnc_stitchAllWounds
  12. *
  13. * Public: No
  14. */
  15. params["_healer","_patient"];
  16. private _bandagedWounds = _patient getVariable ["ace_medical_bandagedWounds", []];
  17. _patient setVariable ["ace_medical_bandagedWounds", [], true];
  18. _patient setVariable ["ace_medical_stitchedWounds", _bandagedWounds, true];
  19. [_patient] call ace_medical_engine_fnc_updateDamageEffects;