Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #define FAK_AMOUNT 3
  2.  
  3. if (!hasInterface) exitWith {};
  4.  
  5. FAS_fnc_canFullyHeal = {
  6. damage player > 0 && {{_x == "FirstAidKit"} count (items player) >= FAK_AMOUNT}
  7. };
  8.  
  9. FAS_fnc_init = {
  10. player addAction ["Full Heal", {
  11. player action ["HealSoldierSelf", player];
  12.  
  13. for "_i" from 2 to FAK_AMOUNT do {
  14. player removeItem "FirstAidKit";
  15. };
  16.  
  17. player setDamage 0;
  18. }, [], 3, false, true, "", "call FAS_fnc_canFullyHeal"];
  19. };
  20.  
  21. call FAS_fnc_init;
  22. player addEventHandler ["Respawn", FAS_fnc_init];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement