Jump to content
Sign in to follow this  
SGT Fuller

Need help once again

Recommended Posts

Hey everybody i need the help of the community at large once again. After careful elimination i have found the script that is plaguing my F22. It appears to slow the game down as you cannot get into the options configuration without a delay..it also doesnt allow you to load more than maybe 5 or so of the same aircraft..i thought it was my Init file but i blocked the code out and found that is indeed this one. If yall can give me a lending hand id greatly appreciate it and will help me push out a hotfix sooner than later

_plane = _this select 0;

while {alive _plane} do
{
waitUntil {currentWeapon _plane != "F22_master_arms_safe"};

switch (currentWeapon _plane) do {
	case "USAF_M61A2": {
		_plane animate ["wb_m61", 1];
		waitUntil {currentWeapon _plane != "usaf_M61A2"};
		_plane animate ["wb_m61", 0];
	};
	case "USAF_GBU39_Launcher": {
		_plane animate ["wb_DL_B", 1];
		_plane animate ["wb_DL_S", 1];
		_plane animate ["wb_DR_B", 1];
		_plane animate ["wb_DR_S", 1];
		waitUntil {currentWeapon _plane != "USAF_GBU39_Launcher"};
		_plane animate ["wb_DL_B", 0];
		_plane animate ["wb_DL_S", 0];
		_plane animate ["wb_DR_B", 0];
		_plane animate ["wb_DR_S", 0];
    };
	case "USAF_GBU31_Launcher": {
		_plane animate ["wb_DL_B", 1];
		_plane animate ["wb_DL_S", 1];
		_plane animate ["wb_DR_B", 1];
		_plane animate ["wb_DR_S", 1];
		waitUntil {currentWeapon _plane != "USAF_GBU31_Launcher"};
		_plane animate ["wb_DL_B", 0];
		_plane animate ["wb_DL_S", 0];
		_plane animate ["wb_DR_B", 0];
		_plane animate ["wb_DR_S", 0];
    };
	case "USAF_AIM120_Launcher": {
		_plane animate ["wb_DL_B", 1];
		_plane animate ["wb_DL_S", 1];
		_plane animate ["wb_DR_B", 1];
		_plane animate ["wb_DR_S", 1];
		waitUntil {currentWeapon _plane != "USAF_AIM120_Launcher"};
		_plane animate ["wb_DL_B", 0];
		_plane animate ["wb_DL_S", 0];
		_plane animate ["wb_DR_B", 0];
		_plane animate ["wb_DR_S", 0];
    };
    case "USAF_AIM9X_Launcher": {
		_plane animate ["wb_L_U", 1];
		_plane animate ["wb_L_D", 1];
		_plane animate ["wb_R_U", 1];
		_plane animate ["wb_R_D", 1];
		waitUntil {currentWeapon _plane != "USAF_AIM9X_Launcher"};
		_plane animate ["wb_L_U", 0];
		_plane animate ["wb_L_D", 0];
		_plane animate ["wb_R_U", 0];
		_plane animate ["wb_R_D", 0];
    };
};
};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×