Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FAK_AMOUNT 3
- if (!hasInterface) exitWith {};
- FAS_fnc_canFullyHeal = {
- damage player > 0 && {{_x == "FirstAidKit"} count (items player) >= FAK_AMOUNT}
- };
- FAS_fnc_init = {
- player addAction ["Full Heal", {
- player action ["HealSoldierSelf", player];
- for "_i" from 2 to FAK_AMOUNT do {
- player removeItem "FirstAidKit";
- };
- player setDamage 0;
- }, [], 3, false, true, "", "call FAS_fnc_canFullyHeal"];
- };
- call FAS_fnc_init;
- player addEventHandler ["Respawn", FAS_fnc_init];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement