Jump to content
Thorimus

Use scripting to equip aircraft with a certain weapon?

Recommended Posts

Hello, I am a complete noob to scripting with virtually no experience in coding, so guidance would be much appreciated.

Is there a way to use a script to equip an aircraft with a weapon that is not selectable in the dynamic loadouts menu? For example, equipping a BLUFOR A-164 Wipeout with an OPFOR Sharur AT missile?

 

EDIT: For anyone else who finds this, I found sucess in this method:

 

In a vehicles init field, enter:


this setPylonLoadOut [PYLON NUMBER, "NAME OF MISSILE", true];

 

Example:
this setPylonLoadOut [4, "ace_maverick_L_PylonRack_3Rnd", true];
 

Share this post


Link to post
Share on other sites

Add in inti field of the aircraft, something like:

 

if (isServer) then {

  this call {
    _this setAmmoOnPylon [3, 1];
    _this setPylonLoadOut [3, "PylonRack_1Rnd_Missile_AGM_01_F", true, []];
    _this setAmmoOnPylon [8, 1];
    _this setPylonLoadOut [8, "PylonRack_1Rnd_Missile_AGM_01_F", true, []];
  };

};

You can use pylons 3 to 8. If you don't want to have HUD red (emptied) former pylons (like Macer 0), don't forget to set the dynamic pylons to empty in the editor attributes.

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

×