_vehicle = _this select 0;
_vehicle setVariable ["radars_switch" , -1];

while {(_vehicle getVariable "radars_switch") == -1} do
{
_anim = _vehicle animationphase "Radar_dome";
if(getdammage _vehicle > 0.9) exitWith {_vehicle setvariable ["radars_switch",0.5];};
if((_vehicle getVariable "radars_switch" == -1)and(_anim % 2 == 0))then
	{
	_vehicle animate ["Radar_dome",_anim + 2];
	};
sleep 0.01;
};
