Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Flax

A2 AO Folding Aircraft + Choppers

Recommended Posts

Right, this is my situation can anyone shed any light?

I need a trigger that detects if a vehicle is a certain class and if it is to add and action to the vehicle. It will be for multilayer and if it helps the vehicle classes are: MV-22 Osprey, AH1Z, UH-1Y.

The action it adds will be to fold away the roters/wings and empty the fuel tank.

If I haven't made it clear enough please don't hesitate to ask questions.

Share this post


Link to post
Share on other sites

Hi! Welcome to the BIS forums.

First, you need to get that impressive yet rule breaking sig squared away. :)

§16) Keep avatars and signatures within forum regulations

Total maximum signature size is 600x150 px (text and/or images combined). Total maximum image size is 100KB.

Second:

nul=[this,1] execVM "\ca\air2\mv22\scripts\pack.sqf";
nul=[this,1] execVM "\ca\air\Scripts\AH1Z_fold.sqf";
nul=[this,1] execvm "\ca\air2\UH1Y\Scripts\fold.sqf";

Share this post


Link to post
Share on other sites

Right thanks about the sig. :) Onto the script i know how to do the folding wings but i only want to add the action when one of those vehicles is detected so here if my script that i want but in english (if that makes sense)

if (classname of 3 choppers) detected addAction ["Fold Rotors", "fold.sqs"];

Thanks

Share this post


Link to post
Share on other sites

Yeah, was just looking into that. First question though, will you only have vehicles from the start or will some be spawned in later?

Share this post


Link to post
Share on other sites

Right the vehicles will only be there from start no re spawn, possibly contemplating a wreck re spawn but highly unlikely.

PS hows that for the sig?

Edited by Flax

Share this post


Link to post
Share on other sites

Here's a demo mission.

Basically I took the lovely BTK cargo script and used it as the framework for stowing of vehicles. You can only stow/deploy if the engine is off and you are outside the vehicle. This way pilots won't have "stow" available while on a sortie. :)

Let me know if you have any questions about this.

This will work with respawn vehicles as well since it's the player assigning the action when it gets close to the vehicle.

Share this post


Link to post
Share on other sites

Thanks so much solved my problem straight off. Wish all forums were as helpful as this! :)

PS just one question, if I want to start with them stowed, how can I do this. If I just do it the normal way, I.E with init line or file I have to press the action twice. I can live with this but it would be nice to know if there was a way. Thanks again.

Edited by Flax

Share this post


Link to post
Share on other sites
Sign in to follow this  

×