/***
	Arma Scripting File
	Edition: 1.66
***/

// Enable eating to improve health.
_unit addAction ["Eat Energy Bar", {
    if (_this#0 getVariable ["EB_NumActivation", 0] > 0) then {
        _this#0 setDamage (0 max (damage (_this#0) - 0.25));
    } else {
        hint "You have eaten it all";
    };
    
    // 4 - means something...
    Z_obj_vip = nil;
    [_boat, ["Black", 1], true] call BIS_fnc_initVehicle;
    [_boat] call myTag_component_fnc_initVehicle;
    _boat setVelocity [0, $0f, 1.1e2];
}];
