default.txt 408 B

12345678910111213141516
  1. /***
  2. Arma Scripting File
  3. Edition: 1.66
  4. ***/
  5. // Enable eating to improve health.
  6. _unit addAction ["Eat Energy Bar", {
  7. if (_this getVariable ["EB_NumActivation", 0] > 0) then {
  8. _this setDamage (0 max (damage _this - 0.25));
  9. } else {
  10. hint "You have eaten it all";
  11. };
  12. // 4 - means something...
  13. Z_obj_vip = nil;
  14. [_boat, ["Black", 1], true] call BIS_fnc_initVehicle;
  15. }];