Addons & Mods Depot > Arma2 - Configs & Scripting

How to Add a Gunner or Copilot

(1/4) > >>

upsilon:
Hello,

There is something I don't understand.
I reskined an UH-60 and it's now more like a UH-60 Ldap.
With this chopper the pilot car use FFar launcher and it's working fine.

But I want to add a copilot/gunner which will be able to designates enemies for CAS or able to launch hellfires 114K.

What I did:
                -"Gun pos" and "Gun pos dir" and "gunnerview" me6mory points added
                - hellfires proxies added
                - hellfire launcher added in config file


what is working :
        If i add hellfirelauncher and hellfire ammo like the FFAR, I can see the hellfires from the out of the chopper, and the pilot is able to fire them.

what is not working:
       -I have no gunner option only "get in as pilot" or "ride in back"
       -If i add hellfirelauncher and hellfire ammo into the turret class, I can't see hellfires from the out of the chopper, and I can't select them to fire.
       -I have no gunner view.


what do I miss ??


Best regards



Gnat:
Unclear what you modified.
Changed the model?
Added a gunner?
Changed the config?
Added HASGUNNER?

upsilon:
sorry, I will try to be more understandable :

-I took the the UH60 model from BIS sample and I tried to add a copilot or a gunner :

What I have done into the model.p3b:
                 -"Gun pos" and "Gun pos dir" and "gunnerview" memory points added
                 - Add UH60_gunner proxy
                 -Add Hellfires proxy

What I have done into the config.cfg


--- Code: ---                 Hasgunner=yes;
                 class Turrets2: Turrets
{
class MainTurret2: MainTurret
{
primary = 1;
gunnerAction = UH60_Gunner;
gunnerInAction = UH60_Gunner;
gunnerName = $STR_POSITION_DOORGUNNER;
weapons[]={HellfireLauncher};
magazines[]={8Rnd_Hellfire};
memoryPointsGetInGunner= "pos gunner";
memoryPointsGetInGunnerDir= "pos gunner dir";
memoryPointGun = "Missile_2";
primaryGunner = 1;
minElev=-60; maxElev=+10; initElev=0;
minTurn=-70; maxTurn=+70; initTurn=0;
gunnerOpticsModel = "\upsilon_choppers\optika_AH1Z";
};
};

--- End code ---


And it's not working, I don't have any option to get in as a Gunner so no gunnerview (optika), moreover, when the hellfires are added into the "class" the are not shown.
But when I add the hellfires directly into the chopper class/upper class the are shown and fireable.


Is it more clear ?


ps: sorry for my english I am French

Gnat:

--- Quote ---Add UH60_gunner proxy
--- End quote ---
Typically you should be adding a 'gunner' proxy, not a 'UH60_gunner' proxy.
Try that.

Does your config have the line;
hasgunner = 1;

DeanosBeano:

 seems you have some contrevening information in what you are putting and what you are defining also if i am reading rightly your missing a LOD .

 firstly if there is not already a view Gunner LOD then add one  and add the following to your cpp.

 gunnerUsesPilotView = 0;

 secondly
--- Quote --- -I have no gunner view.
--- End quote ---
  :

--- Quote ----"Gun pos" and "Gun pos dir" and "gunnerview" me6mory points added
--- End quote ---

 but here in the cpp defines we see :

 
--- Quote ---memoryPointsGetInGunner= "pos gunner";
            memoryPointsGetInGunnerDir= "pos gunner dir";
--- End quote ---

 these need to either match up , doesnt matter which you change.

  about hellfires well you need to add the proxies in all the relevant LODS  and ensure your inheriting your turrets correctly , it should be that you add the Hellfire proxies and i presume already you have missile memmory points for FFARS , then you add  the Weapons and Magazines  in the turret part of the config , not before  , this will add it only to the chopper itself and thus the Pilot will own them.

 Hope this Helps

Navigation

[0] Message Index

[#] Next page

Go to full version