Jump to content
Blitzen88

How to call and spawn group defined in Description.ext…?

Recommended Posts

I’ve defined “custom” (ie RHS and vanilla) groups via my description.ext file.  Is there a way I can spawn those groups via Bis_fnc_spawngroup? Based off of my structure, would this be the correct syntax:
 

configfile >> "CfgGroups" >> "West" >> "NATO_RHS" >> "Infantry" >> "NATO_RHS_RifleSquad"


I don’t know if “configfile” needs to be concluded…?

 

Description.ext:

Spoiler

/*=========================================================================================== 

Arma III Description.Ext

===========================================================================================*/

//-----------------------------------------------------
// I) CfgGroups
//-----------------------------------------------------

class cfgGroups {

class West {

#include "Group Structure\NATO_Vanilla.hpp"
#include "Group Structure\NATO_RHS.hpp"

};

class East {

#include "Group Structure\CSAT_Vanilla.hpp"
#include "Group Structure\CSAT_RHS.hpp"

};

class Indep {

#include "Group Structure\AAF_Vanilla.hpp"
//AAF RHS Units Not Supported yet

};

class Civilian {

#include "Group Structure\Civilian_Vanilla.hpp"

};

};

//-----------------------------------------------------
// II) CfgFunctions
//-----------------------------------------------------

// None at this Time

//-----------------------------------------------------
// III) Corpse/Wreck Manager
//-----------------------------------------------------

MinPlayerDistance = 50;

// A) Corpse Manager
//---------------------------

CorpseManagerMode = 1;

CorpseLimit = 10;

CorpseRemovalMinTime = 10;

CorpseRemovalMaxTime = 300;


// B) Wreck Manager
//---------------------------

WreckManagerMode = 1;

WreckLimit = 8;

WreckRemovalMinTime = 10;

WreckRemovalMaxTime = 300;

//-----------------------------------------------------
// IV) Mission Specific Settings
//-----------------------------------------------------

// None for this Mission


Nato

Spoiler

/*==========================================================================================

Arma III - SpawnAI Module Groups - NATO (RHS)

Created by Blitzen

===========================================================================================

* CFG Custom Group Faction ("class NATO_Vanilla") - Name for the custom faction

* CFG Groups Group Categories ("class Infantry, Motorized, Mechanized, Armored) - SpawnAI Module looks for these classes

* CFG Groups Group Name ("class NATO_Vanilla_RifleSquad, NATO_RHS_RifleSquad") - Group name used by the SpawnAI Module; name is used for blacklisting

* Icons

- NATO = b_ 

- CSAT = o_

- AAF = n_

- Inf = "\A3\ui_f\data\map\markers\nato\b_inf.paa"

- Motorized = "\A3\ui_f\data\map\markers\nato\b_motor_inf.paa"

- Mechanized = "\A3\ui_f\data\map\markers\nato\b_mech_inf.paa"

- Armor = "\A3\ui_f\data\map\markers\nato\b_armor_inf.paa"

* Unit creation structure:

class unit0 {
vehicle = "rhsusf_army_ocp_squadleader";    Class name of unit/vehicle
side = 1;                                   Index of unit side - [ east (0), west (1), independent (2), civilian ]
rank = "SERGEANT";                          Rank name from CfgRanks
position[] = { 0, 0, 0 };                   Offset position unit spawns from spawn point
};


===========================================================================================*/

class NATO_RHS {

//-----------------------------------------------------
// I) Infantry
//-----------------------------------------------------
            
class Infantry {

class NATO_RHS_RifleSquad {

Name = "NATO RHS Rifle Squad";

Icon = "\A3\ui_f\data\map\markers\nato\b_inf.paa";

class unit0 {
vehicle = "B_Soldier_SL_F";
side = 1;
rank = "SERGEANT";
position[] = { 0, 0, 0 };
                    };

class unit1 {
vehicle = "B_Soldier_F";
side = 1;
rank = "CORPORAL";
position[] = { 5, -5, 0 };
                    };

       class unit2 {
vehicle = "B_soldier_LAT_F";
side = 1;
rank = "PRIVATE";
position[] = { -5, -5, 0 };
                    };

        class unit3 {
vehicle = "B_soldier_M_F";
side = 1;
rank = "PRIVATE";
position[] = { 10, -10, 0 };
                    };

        class unit4 {
vehicle = "B_Soldier_TL_F";
side = 1;
rank = "PRIVATE";
position[] = { -10, -10, 0 };
                    };

        class unit5 {
vehicle = "B_soldier_AR_F";
side = 1;
rank = "PRIVATE";
position[] = { 15, -15, 0 };
                    };

        class unit6 {
vehicle = "B_Soldier_A_F";
side = 1;
rank = "PRIVATE";
position[] = { -15, -15, 0 };
                    };

        class unit7 {
vehicle = "B_medic_F";
side = 1;
rank = "PRIVATE";
position[] = { 20, -20, 0 };
                    };
    };

class NATO_RHS_WeaponsSquad {

Name = "NATO RHS Weapons Squad";

Icon = "\A3\ui_f\data\map\markers\nato\b_inf.paa";

class unit0 {
vehicle = "B_Soldier_SL_F";
side = 1;
rank = "SERGEANT";
position[] = { 0, 0, 0 };
                    };

class unit1 {
vehicle = "B_soldier_AR_F";
side = 1;
rank = "CORPORAL";
position[] = { 5, -5, 0 };
                    };

       class unit2 {
vehicle = "B_Soldier_GL_F";
side = 1;
rank = "PRIVATE";
position[] = { -5, -5, 0 };
                    };

        class unit3 {
vehicle = "B_soldier_M_F";
side = 1;
rank = "PRIVATE";
position[] = { 10, -10, 0 };
                    };

        class unit4 {
vehicle = "B_soldier_AT_F";
side = 1;
rank = "PRIVATE";
position[] = { -10, -10, 0 };
                    };

        class unit5 {
vehicle = "B_soldier_AAT_F";
side = 1;
rank = "PRIVATE";
position[] = { 15, -15, 0 };
                    };

        class unit6 {
vehicle = "B_Soldier_A_F";
side = 1;
rank = "PRIVATE";
position[] = { -15, -15, 0 };
                    };

        class unit7 {
vehicle = "B_medic_F";
side = 1;
rank = "PRIVATE";
position[] = { 20, -20, 0 };
                    };
    };

};

//-----------------------------------------------------
// II) Motorized
//-----------------------------------------------------

class Motorized {

class NATO_RHS_Hummer_HMG {

Name = "NATO RHS Hummer HMG";

Icon = "\A3\ui_f\data\map\markers\nato\b_motor_inf.paa";

class unit0 {
vehicle = "rhsusf_m1025_w_m2";
side = 1;
rank = "SERGEANT";
position[] = { 0, 0, 0 };
                    };
};

class NATO_RHS_Hummer_GMG {

Name = "NATO RHS Hummer GMG";

Icon = "\A3\ui_f\data\map\markers\nato\b_motor_inf.paa";

class unit0 {
vehicle = "rhsusf_m1025_w_mk19";
side = 1;
rank = "SERGEANT";
position[] = { 0, 0, 0 };
                    };
};

class NATO_RHS_Hummer_ATGM {

Name = "NATO RHS Hummer ATGM";

Icon = "\A3\ui_f\data\map\markers\nato\b_motor_inf.paa";

class unit0 {
vehicle = "rhsusf_m1045_w";
side = 1;
rank = "SERGEANT";
position[] = { 0, 0, 0 };
                    };
};

class NATO_RHS_Stryker_HMG {

Name = "NATO RHS Stryker HMG";

Icon = "\A3\ui_f\data\map\markers\nato\b_motor_inf.paa";

class unit0 {
vehicle = "rhsusf_stryker_m1126_m2_wd";
side = 1;
rank = "SERGEANT";
position[] = { 0, 0, 0 };
                    };
};

class NATO_RHS_Stryker_GMG {

Name = "NATO RHS Stryker GMG";

Icon = "\A3\ui_f\data\map\markers\nato\b_motor_inf.paa";

class unit0 {
vehicle = "rhsusf_stryker_m1126_mk19_wd";
side = 1;
rank = "SERGEANT";
position[] = { 0, 0, 0 };
                    };
};

class NATO_RHS_Stryker_ATGM {

Name = "NATO RHS Stryker ATGM";

Icon = "\A3\ui_f\data\map\markers\nato\b_motor_inf.paa";

class unit0 {
vehicle = "rhsusf_stryker_m1134_wd";
side = 1;
rank = "SERGEANT";
position[] = { 0, 0, 0 };
                    };
};

class NATO_RHS_Stryker_HMG_Squad {

Name = "NATO RHS Styker HMG Squad";

Icon = "\A3\ui_f\data\map\markers\nato\b_motor_inf.paa";

class unit0 {
vehicle = "rhsusf_stryker_m1126_m2_wd";
side = 1;
rank = "SERGEANT";
position[] = { 0, 0, 0 };
                    };

class unit1 {
vehicle = "B_Soldier_SL_F";
side = 1;
rank = "SERGEANT";
position[] = { 5, -5, 0 };
                    };

class unit2 {
vehicle = "B_Soldier_F";
side = 1;
rank = "CORPORAL";
position[] = { -5, -5, 0 };
                    };

class unit3 {
vehicle = "B_soldier_LAT_F";
side = 1;
rank = "CORPORAL";
position[] = { 10, -10, 0 };
                    };

   class unit4 {
vehicle = "B_soldier_M_F";
side = 1;
rank = "PRIVATE";
position[] = { -10, -10, 0 };
                    };

class unit5 {
vehicle = "B_Soldier_TL_F";
side = 1;
rank = "PRIVATE";
position[] = { 15, -15, 0 };
                    };

        class unit6 {
vehicle = "B_soldier_AR_F";
side = 1;
rank = "PRIVATE";
position[] = { -15, -15, 0 };
                    };

        class unit7 {
vehicle = "B_Soldier_A_F";
side = 1;
rank = "PRIVATE";
position[] = { 20, -20, 0 };
                    };

        class unit8 {
vehicle = "B_medic_F";
side = 1;
rank = "PRIVATE";
position[] = { -20, -20, 0 };
                    };
};

class NATO_RHS_Stryker_GMG_Squad {

Name = "NATO RHS Styker GMG Squad";

Icon = "\A3\ui_f\data\map\markers\nato\b_motor_inf.paa";

class unit0 {
vehicle = "rhsusf_stryker_m1126_mk19_wd";
side = 1;
rank = "SERGEANT";
position[] = { 0, 0, 0 };
                    };

class unit1 {
vehicle = "B_Soldier_SL_F";
side = 1;
rank = "SERGEANT";
position[] = { 5, -5, 0 };
                    };

class unit2 {
vehicle = "B_Soldier_F";
side = 1;
rank = "CORPORAL";
position[] = { -5, -5, 0 };
                    };

class unit3 {
vehicle = "B_soldier_LAT_F";
side = 1;
rank = "CORPORAL";
position[] = { 10, -10, 0 };
                    };

   class unit4 {
vehicle = "B_soldier_M_F";
side = 1;
rank = "PRIVATE";
position[] = { -10, -10, 0 };
                    };

class unit5 {
vehicle = "B_Soldier_TL_F";
side = 1;
rank = "PRIVATE";
position[] = { 15, -15, 0 };
                    };

        class unit6 {
vehicle = "B_soldier_AR_F";
side = 1;
rank = "PRIVATE";
position[] = { -15, -15, 0 };
                    };

        class unit7 {
vehicle = "B_Soldier_A_F";
side = 1;
rank = "PRIVATE";
position[] = { 20, -20, 0 };
                    };

        class unit8 {
vehicle = "B_medic_F";
side = 1;
rank = "PRIVATE";
position[] = { -20, -20, 0 };
                    };
};

};

//-----------------------------------------------------
// III) Mechanized
//-----------------------------------------------------

class Mechanized {

class NATO_RHS_Bradley {

Name = "NATO RHS Bradley";

Icon = "\A3\ui_f\data\map\markers\nato\b_mech_inf.paa";

class unit0 {
vehicle = "RHS_M2A3_wd";
side = 1;
rank = "SERGEANT";
position[] = { 0, 0, 0 };
                    };
};

class NATO_RHS_Bradley_Squad {

Name = "NATO RHS Bradley Squad";

Icon = "\A3\ui_f\data\map\markers\nato\b_mech_inf.paa";

class unit0 {
vehicle = "RHS_M2A3_wd";
side = 1;
rank = "SERGEANT";
position[] = { 0, 0, 0 };
                    };

class unit1 {
vehicle = "B_Soldier_SL_F";
side = 1;
rank = "CORPORAL";
position[] = { 5, -5, 0 };
                    };

class unit2 {
vehicle = "B_Soldier_F";
side = 1;
rank = "CORPORAL";
position[] = { -5, -5, 0 };
                    };

class unit3 {
vehicle = "B_soldier_LAT_F";
side = 1;
rank = "PRIVATE";
position[] = { 10, -10, 0 };
                    };

        class unit4 {
vehicle = "B_Soldier_TL_F";
side = 1;
rank = "PRIVATE";
position[] = { -10, -10, 0 };
                    };

        class unit5 {
vehicle = "B_soldier_AR_F";
side = 1;
rank = "PRIVATE";
position[] = { 15, -15, 0 };
                    };

        class unit6 {
vehicle = "B_medic_F";
side = 1;
rank = "PRIVATE";
position[] = { -15, -15, 0 };
                    };
};

};

//-----------------------------------------------------
// IV) Armored
//-----------------------------------------------------

class Armored {

class NATO_RHS_Abrams {

Name = "NATO RHS Abrams";

Icon = "\A3\ui_f\data\map\markers\nato\b_armor_inf.paa";

class unit0 {
vehicle = "rhsusf_m1a1aimwd_usarmy";
side = 1;
rank = "SERGEANT";
position[] = { 0, 0, 0 };
                    };
};

};
       
}; //End Custom Faction




 

 

Share this post


Link to post
Share on other sites
On 5/14/2024 at 5:51 PM, Blitzen88 said:

configfile >> "CfgGroups" >> "West" >> "NATO_RHS" >> "Infantry" >> "NATO_RHS_RifleSquad"


I don’t know if “configfile” needs to be concluded…? 

Description.ext is missionConfigFile instead.

Share this post


Link to post
Share on other sites
22 hours ago, Larrow said:

Description.ext is missionConfigFile instead.

Thank you!

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

×