_panc = _this select 0;
_Vehicle = typeOf _panc;

if (_this select 1 == "random" || _this select 2 == "random") then
{
		//based on DKM Script
		_nr = (((getpos _panc select 0) + (getpos _panc select 1)*3)Mod 1000)-1;
		_nr = _nr - (_nr Mod 1);
		_i = _nr Mod 10;

		if (_i == 0 or _i == 5) then {_panc animate ["panc1_hide",0]; _panc animate ["panc2_hide",0];};
		if (_i == 1 or _i == 6) then {_panc animate ["panc1_hide",1]; _panc animate ["panc2_hide",1];};
		if (_i == 2 or _i == 7) then {_panc animate ["panc1_hide",1]; _panc animate ["panc2_hide",1];};
		if (_i == 3 or _i == 8) then {_panc animate ["panc1_hide",1]; _panc animate ["panc2_hide",1];};
		if (_i == 4 or _i == 9) then {_panc animate ["panc1_hide",0]; _panc animate ["panc2_hide",0];};

		_i = ((_nr - _i)/10) Mod 10;

		if (_i == 0 or _i == 5) then {_panc animate ["panc1_hide",0]; _panc animate ["panc2_hide",0];};
		if (_i == 1 or _i == 6) then {_panc animate ["panc1_hide",1]; _panc animate ["panc2_hide",1];};
		if (_i == 2 or _i == 7) then {_panc animate ["panc1_hide",0]; _panc animate ["panc2_hide",0];};
		if (_i == 3 or _i == 8) then {_panc animate ["panc1_hide",1]; _panc animate ["panc2_hide",1];};
		if (_i == 4 or _i == 9) then {_panc animate ["panc1_hide",0]; _panc animate ["panc2_hide",0];};
};

switch (_this select 1) do 
{
	case "hide" : {_panc animate ["panc1_hide",1];};
	case "unhide" : {_panc animate ["panc1_hide",0];};
};

switch (_this select 2) do 
{
	case "hide" : {_panc animate ["panc2_hide",1];};
	case "unhide" : {_panc animate ["panc2_hide",0];};
};

switch (_this select 3) do 
{
	case "hide" : {_panc animate ["panc3_hide",1];};
	case "unhide" : {_panc animate ["panc3_hide",0];};

	case "random" :
	{
		//based on DKM Script
		_nr = (((getpos _panc select 0) + (getpos _panc select 1)*3)Mod 1000)-1;
		_nr = _nr - (_nr Mod 1);
		_i = _nr Mod 10;

		if (_i == 0 or _i == 5) then {_panc animate ["panc3_hide",0];};
		if (_i == 1 or _i == 6) then {_panc animate ["panc3_hide",1];};
		if (_i == 2 or _i == 7) then {_panc animate ["panc3_hide",1];};
		if (_i == 3 or _i == 8) then {_panc animate ["panc3_hide",1];};
		if (_i == 4 or _i == 9) then {_panc animate ["panc3_hide",0];};

		_i = ((_nr - _i)/5) Mod 10;

		if (_i == 0 or _i == 5) then {_panc animate ["panc3_hide",0];};
		if (_i == 1 or _i == 6) then {_panc animate ["panc3_hide",1];};
		if (_i == 2 or _i == 7) then {_panc animate ["panc3_hide",0];};
		if (_i == 3 or _i == 8) then {_panc animate ["panc3_hide",1];};
		if (_i == 4 or _i == 9) then {_panc animate ["panc3_hide",0];};
	};
};