Jump to content
Sign in to follow this  
quicksilver67

Multiple configurations help.

Recommended Posts

I may be trying to reinvent the wheel here, but what I am trying to do is allow the pilot of an aircraft (an A-10) to change the weapons loadout of the plane.

It works, but it needs help:

In the A-10's init line:

this addAction ["CAS Loadout", "A10_CAS.sqf"]; this addAction ["Multirole Loadout", "A10_Multi.sqf"]; this addaction ["AT Loadout", "A10_AT.sqf"];

An example of one of the sqf files:

_vehicle = _this select 0;

_vehicle removeMagazine "4Rnd_GBU12";

_vehicle removeWeapon "BombLauncherA10";

_vehicle addWeapon "AirBombLauncher";

_vehicle addMagazine "4Rnd_FAB_250";

What happens: When you are close enough to the vehicle, the action menu appears with the 3 choices. If you chose one, the loadout appears correctly, with the items in the correct places, if you choose a different loadout afterwards, the items are in the wrong places and the script stops functioning at that point.

What I would like to do: On get in, while velocity = 0, I would like a hint to briefly display and the menu become available. I would like to be able to switch between loadouts without error (or as little as possible). I would like the menu options to be removed once the plane begins moving, but be available again once the plane lands and velocity again = 0. I already know how to make the vehicle respawn with the scripting in tact.

If anyone could help me out here, I'd really appreciate it. Myke? you out there? Help!!!!

Edited by quicksilver67
grammar.

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  

×