Jump to content
Sign in to follow this  
matkob

Any tutorial on creating custom cfg groups in config.cpp????

Recommended Posts

Is there any tutorial how to create custom groups in config.cpp?

Thanks

Share this post


Link to post
Share on other sites

Here is a part of my Units.cpp:

/////Groups
class CfgGroups
{
class East
{
 name = "$STR_A3_CfgGroups_East0";
 side = 0;
 class secyour_groups
 {
displayName = "SecYour";

  class Infantry
  {
   displayName = "Men";


class secyour_patrol
   {
    displayName = "Contractor Patrol";
    side = 0;
faction = "biw_secyour_faction";
    class Unit0
    {
     side = 0;
     vehicle = "secyour_contractor_rifleman";
     rank = "CORPORAL";
     position[] = {0,0,0};
    };
    class Unit1
    {
     side = 0;
     vehicle = "secyour_contractor_at";
     rank = "PRIVATE";
     position[] = {0,-5,0};
    };
};


};
};
};

at vehicle, you can make the classname of the units, you want to make.

position is the display position of the units after including the group in the editor.

NOTE: I get an error with this entry, but I can place the groups correctly.

AND: Take a look at the config of the data_F.pbo, there are all the Groups defined.

Share this post


Link to post
Share on other sites

The problem I have is that I tried to edit some existing mods without groups to add them - I treid almost anything but at the end I have scroll menu for the group but all the time it places instead of desired units some CSAT units.

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  

×