Browse Source

trying to make at-te turrers disableable

Namenai 7 năm trước cách đây
mục cha
commit
e7cf3e55aa

+ 10 - 2
Scripts/scripts/zeus3denScripts/vehicleBased/vehicleVariants/landBased/ATTE/atteBase.sqf

@@ -81,13 +81,21 @@ UAVT={
 	params["_vic"];
 	comment "ADDS REPAIR";
 	
-	_vic addAction ["<t color='#47FF1A'>Repair</t>",
+	_vic addAction ["<t color='#47FF1A'>Repair Turret</t>",
 	{[_this select 0] execVM "scripts\zeus3denScripts\vehicleBased\actionMenu\Repair\repair.sqf";}];		   
 	   
 	
 	_vic addEventHandler ["HandleDamage", { 
       _damage = _this select 2; 
-           if ( (_this select 1 == "") and (_damage > 0.9999) ) then { _damage = 0.9999 }; 
+           if ( (_this select 1 == "") and (_damage > 0.9999) ) then 
+		   { 
+			_damage = 0.9999; 
+		   }
+		   else
+		   {
+		   
+		   
+		   };
        _damage; 
        }];
 	};