Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. //Y Player Menu
  2. case 39: {
  3. if (_shift && !_ctrlKey && (_medicRepairing isEqualTo 1) && (playerSide isEqualTo independent)) && {!life_action_inUse}) then {
  4.  
  5. {
  6.  
  7. _damage = getDammage _x;
  8.  
  9. if ((_damage > 0.1) && !(_x isKindOf "Man") && !(_x isKindOf "Car") && !(_x isKindOf "Air") && !(_x isKindOf "Ship")) then {
  10.  
  11.  
  12. _damged = _damged + 1;
  13.  
  14. };
  15.  
  16. } forEach _nearestObjects;
  17.  
  18. if (_damged > 0) then {
  19.  
  20. [] call toxic_fnc_repairSystem;
  21.  
  22. } else {
  23.  
  24. exitWith {hint "Aucune réparation a effectuer"};
  25.  
  26. };
  27.  
  28. };
  29.  
  30. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement