fnc_incrementBandageProgress.sqf 468 B

1234567891011121314151617181920
  1. /*
  2. * Author: M3ales
  3. *
  4. * Arguments:
  5. * Building or object to increment variable on
  6. * The player who is performing the action
  7. * Return Value:
  8. * None
  9. *
  10. * Example:
  11. * [cursorTarget, player] call rd501_fnc_incrementBandageProgress
  12. *
  13. * Public: No
  14. */
  15. params["_origin", "_healer"];
  16. _progress = _origin getVariable["rd501_medical_ccp_bandageProgress", -1];
  17. if(_progress >= 0) then {
  18. _origin setVariable["rd501_medical_ccp_bandageProgress", _progress + 1, true];
  19. };