(AOW)Recon Posted February 20, 2015 Report Share Posted February 20, 2015 Animated Vehicles You Can Put This In Any Arma Sever You Need "compiles.sqf" and "variables.sqf" Here's My Tut on how to make them. http://epochmod.com/forum/index.php?/topic/32560-how-to-make-a-custom-folder-with-the-needs/?p=209213 Put this in your "custom\compiles.sqf" in the "if (!isDedicated) then {" mv22_pack = compile preprocessFileLineNumbers "\ca\air2\mv22\scripts\pack.sqf"; UH1Y_pack = compile preprocessFileLineNumbers "\ca\air2\UH1Y\scripts\fold.sqf"; Then in your "variables.sqf" find this: s_player_lockUnlock_crtl = -1; After that put: mv22_fold = -1; mv22_unfold = -1; mv22_open = -1; mv22_close = -1; suv_close = -1; suv_open = -1; UH1Y_fold = -1; UH1Y_unfold = -1; In "fn_selfActions.sqf" find this: } else { player removeAction s_player_grabflare; player removeAction s_player_removeflare; s_player_grabflare = -1; s_player_removeflare = -1; }; After that then put: if (_inVehicle && {_vehicle isKindOf "MV22","MV22_DZ"}) then { if (isEngineOn _vehicle) then {[_vehicle,0] call mv22_pack;}; if (mv22_fold < 0) then { themv22 = _vehicle; if !(isEngineOn themv22) then { mv22_fold = themv22 addAction ["Fold","scripts\animate\mv22_fold.sqf","",5,false,true]; mv22_unfold = themv22 addAction ["UnFold","scripts\animate\mv22_unfold.sqf","",5,false,true]; mv22_open = themv22 addAction ["Open Ramp","scripts\animate\mv22_open.sqf","",5,false,true]; mv22_close = themv22 addAction ["Close Ramp","scripts\animate\mv22_close.sqf","",5,false,true]; }; }; if (isEngineOn themv22) then { themv22 removeAction mv22_fold; mv22_fold = -1; themv22 removeAction mv22_unfold; mv22_unfold = -1; themv22 removeAction mv22_open; mv22_open = -1; themv22 removeAction mv22_close; mv22_close = -1; }; } else { if (!isNil "themv22") then { themv22 removeAction mv22_fold; mv22_fold = -1; themv22 removeAction mv22_unfold; mv22_unfold = -1; themv22 removeAction mv22_open; mv22_open = -1; themv22 removeAction mv22_close; mv22_close = -1; }; }; if (_inVehicle && {_vehicle isKindOf "ArmoredSUV_Base_PMC"}) then { if ((_vehicle animationPhase "HideGun_01") == 1) then { _unit = _vehicle turretUnit [0]; if (!(isNull _unit)) then { _unit action ["moveToCargo",_vehicle,2]; titleText ["\n\nYou must open the hatch first.","PLAIN DOWN"];titleFadeOut 4; }; }; if (suv_close < 0) then { thesuv = _vehicle; suv_close = thesuv addAction ["Close Hatch","scripts\animate\suv_close.sqf","",5,false,true]; suv_open = thesuv addAction ["Open Hatch","scripts\animate\suv_open.sqf","",5,false,true]; }; } else { if (!isNil "thesuv") then { thesuv removeAction suv_close; suv_close = -1; thesuv removeAction suv_open; suv_open = -1; }; }; if (_inVehicle && {_vehicle isKindOf "UH1Y","UH1Y_DZ","UH1Y_DZE"}) then { if (isEngineOn _vehicle) then {[_vehicle,0] call UH1Y_pack;}; if (UH1Y_fold < 0) then { theuh1y = _vehicle; if !(isEngineOn theuh1y) then { UH1Y_fold = theuh1y addAction ["Fold","Script\animate\UH1Y_fold.sqf","",5,false,true]; UH1Y_unfold = theuh1y addAction ["UnFold","Script\animate\UH1Y_unfold.sqf","",5,false,true]; }; }; if (isEngineOn theuh1y) then { theuh1y removeAction UH1Y_fold; UH1Y_fold = -1; theuh1y removeAction UH1Y_unfold; UH1Y_unfold = -1; }; } else { if (!isNil "theuh1y") then { theuh1y removeAction UH1Y_fold; UH1Y_fold = -1; theuh1y removeAction UH1Y_unfold; UH1Y_unfold = -1; }; }; Put the Foldable's in you scripts folder If you have antihack Like (InfaStar) Find: _dayzActions = After that put: mv22_fold,mv22_unfold,mv22_open,mv22_close,suv_close,suv_open,UH1Y_fold,UH1Y_unfold well do the AH1z Later :) maybe Here Are The Were You Can Get The File's: https://github.com/AOWGaming/Foldable Credits: http://opendayz.net/threads/release-animated-vehicles.20108/ ebaydayz Layout of code and also the MV22 and SUV Known Issue's Take's Away Upgrade Menu For building Link to comment Share on other sites More sharing options...
ElDubya Posted February 20, 2015 Report Share Posted February 20, 2015 Not meaning to look a gift horse in the mouth mate, but is there anyway to make their current state (folded/unfolded) persist through server restart? Link to comment Share on other sites More sharing options...
LunatikCH Posted February 20, 2015 Report Share Posted February 20, 2015 Is it still so that when you have packed your MV you can start the engine again and fly with a folded MV? Link to comment Share on other sites More sharing options...
(AOW)Recon Posted February 20, 2015 Author Report Share Posted February 20, 2015 Not meaning to look a gift horse in the mouth mate, but is there anyway to make their current state (folded/unfolded) persist through server restart? hmm i dont think soo but you might be able to but your going to just alot of changing the way they spawn in ill look in to it if i have time Link to comment Share on other sites More sharing options...
(AOW)Recon Posted February 20, 2015 Author Report Share Posted February 20, 2015 fix i fergot to add UH1Y_pack = compile preprocessFileLineNumbers "\ca\air2\UH1Y\scripts\fold.sqf"; Link to comment Share on other sites More sharing options...
(AOW)Recon Posted February 20, 2015 Author Report Share Posted February 20, 2015 Is it still so that when you have packed your MV you can start the engine again and fly with a folded MV? it unfold's when you start it Link to comment Share on other sites More sharing options...
(AOW)Recon Posted February 20, 2015 Author Report Share Posted February 20, 2015 Sorry man i had it almost done then i hit the back butten on my mouse and had to restart it was late i was sleepy ill fix it when i get back Link to comment Share on other sites More sharing options...
(AOW)Recon Posted February 20, 2015 Author Report Share Posted February 20, 2015 ahh ok well do there's only one thing thoe... i need to slow all of them down Link to comment Share on other sites More sharing options...
SideShowFreak Posted February 20, 2015 Report Share Posted February 20, 2015 dont forget you can add the side an drear gun to the mv22 as well ;) Link to comment Share on other sites More sharing options...
(AOW)Recon Posted February 21, 2015 Author Report Share Posted February 21, 2015 dont forget you can add the side an drear gun to the mv22 as well ;) Hmm you can? Want to hope on my ts? Link to comment Share on other sites More sharing options...
SideShowFreak Posted February 21, 2015 Report Share Posted February 21, 2015 This is what i use, has the pack-able SUV gun, MV-22 Fold-able blades and rotors, rear and side door+ guns/gunner positions for them, UH1Y fold-able blades, Cessna rainbow smoke, Tower lighting, and C-130 side door + rear ramp. I wish i knew who made the script so i could give credit but i found these a couple years a go in a PBO that someone released. If it was you Ebaydayz then Credit goes to Ebaydayz. The only known issue i have seen is the rear gun you need to move seats before getting out or it will glitch you into the floor of the MV-22. Im sure someone can/has a fix. Link to comment Share on other sites More sharing options...
Renegade2k6 Posted February 25, 2015 Report Share Posted February 25, 2015 Had a play with these a while ago. https://www.youtube.com/watch?v=gf8upWk3Ar4 https://www.youtube.com/watch?v=MqlUvMpW9mc Link to comment Share on other sites More sharing options...
(AOW)Recon Posted February 25, 2015 Author Report Share Posted February 25, 2015 cool man im going to slow down the mv22 and make some new one's with another script but i need to rewrite so when you turn it on it well unfold Link to comment Share on other sites More sharing options...
Chainsaw Squirrel Posted February 26, 2015 Report Share Posted February 26, 2015 looks like same thing as on opendayz Link to comment Share on other sites More sharing options...
ALKINDA Posted February 26, 2015 Report Share Posted February 26, 2015 Nice i didnt notice the "UH1Y", only the dz and dze versions. Link to comment Share on other sites More sharing options...
(AOW)Recon Posted February 26, 2015 Author Report Share Posted February 26, 2015 ya ik i did the uh1y before they did it's pretty much an addon Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now