Jump to content
Sign in to follow this  
South_Penguin

About config Weapon Linked Items

Recommended Posts

hello everyone~~

i have a question About config Weapon Linked Items. I class a automatic rifle but I can't let my unit take it.

This is my coding

 

 

1.weapons

class CfgWeapons
{
  class rhs_weap_m4a1_blockII_KAC_d;
  class rhs_weap_m4a1_blockII_KAC_d_ACOGforPGA: rhs_weap_m4a1_blockII_KAC_d
  {
    scope=1;
    scopeCurator=1;
    class linkedItems
    {
      class LinkedItemsOptic
      {
        slot="CowsSlot";
        itom="rhsusf_acc_ACOG_d";
      };
      class LinkedItemsMuzzle
      {
        slot="MuzzleSlot";
        item="rhsusf_acc_grip2_tan";
      };
    };
  };
};
 

 

2.unit

class PGA_Squadleader: BLK_OCP_R_soldier_F
  {
    side=2;
    faction="PGA_FACTION";
    vehicleclass="PGA_Unit";
    scope=2;
    displayName="PGA_Squadleader";
    nakedUniform="U_BasicBody";
    uniformClass="PGA_Squadleader";
    weapons[]=
    {
      "rhs_weap_m4a1_blockII_KAC_d_ACOGforPGA",
      "RH_g19t",
      "Throw",
      "Put"
    };
    respawnWeapons[]=
    {
      "rhs_weap_m4a1_blockII_KAC_d_ACOGforPGA",
      "RH_g19t",
      "Throw",
      "Put"
    };

----------------------------------------------------------------------------------------------

If you know where I am wrong.

please tell me.
thank you very much.

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  

×