Jump to content
PUDDY300

Adding Custom Faction to Spawn AI Module through addon

Recommended Posts

Posted (edited)

Hi Everyone,

 

So as the title says, I've created a new faction and one thing I'd like to do is get it to work with the Arma 3 modules without extra scripting in every mission I make. So I decided to create a replacement config that could add my faction into the list of factions on the module. I'll post that code below:

 

Spoiler

#define _ARMA_

class CfgPatches
{
	class WW2_Modules
	{
		units[] = {};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {"A3_Modules_F", "A3_Modules_F_Data", "A3_Modules_F_DynO", "A3_Modules_F_Heli_Misc", "WWII_Core"};
	};
};
class CfgVehicles
{
	class Logic;
	class Module_F: Logic
	{
		class ModuleDescription
		{
			class AnyAI;
		};
	};
	class ModuleSpawnAI_F: Module_F
	{
		author = "Bohemia Interactive";
		_generalMacro = "ModuleSpawnAI_F";
		scope = 2;
		isGlobal = 0;
		isTriggerActivated = 1;
		displayName = "Spawn AI";
		function = "bis_fnc_moduleSpawnAI";
		functionPriority = 12;
		icon = "\a3\Modules_F\Data\iconStrategicMapOpen_ca.paa";
		isDisposable = 0;
		class Arguments
		{
			class Side
			{
				displayName = "Side";
				class Values
				{
					class West
					{
						name = "BLUFOR";
						value = "West";
						default = 1;
					};
					class East
					{
						name = "OPFOR";
						value = "East";
					};
					class Indep
					{
						name = "Independent";
						value = "Indep";
					};
				};
			};
			class ManpowerCap
			{
				displayName = "Manpower Cap";
				description = "Maximum manpower when groups can still be spawned. When the manpower limit is reached, spawning is paused.";
				typeName = "NUMBER";
				defaultValue = 50;
			};
			class SpawnRate
			{
				displayName = "Spawn Rate";
				description = "How often groups are spawned, if the manpower cap is not reached.";
				class Values
				{
					class High
					{
						name = "15 seconds";
						value = 1;
					};
					class Medium
					{
						name = "30 seconds";
						value = 2;
						default = 1;
					};
					class Low
					{
						name = "60 seconds";
						value = 4;
					};
					class VeryLow
					{
						name = "120 seconds";
						value = 8;
					};
				};
				typeName = "NUMBER";
			};
			class VehiclesInGroup
			{
				displayName = "Max. Vehicles per Group";
				description = "Max. number of vehicles that can be spawned in a group.";
				typeName = "NUMBER";
				defaultValue = 1;
			};
			class InfantryInGroup
			{
				displayName = "Max. Soldiers per Group";
				description = "Max. number of soldiers that can be spawned in an infantry group.";
				typeName = "NUMBER";
				defaultValue = 6;
			};
			class Expression
			{
				displayName = "Expression";
				description = "Code executed when group is spawned. Passed arguments are [<group>,<module>,<groupData>].";
				typeName = "STRING";
				defaultValue = "";
			};
			class Faction
			{
				displayName = "Faction";
				description = "Faction of groups spawned at the point.";
				class values
				{
					class NATO
					{
						name = "NATO (BLUFOR)";
						value = "BLU_F";
						default = 1;
					};
					class FIA
					{
						name = "FIA (BLUFOR)";
						value = "Guerilla";
					};
					class CSAT
					{
						name = "CSAT (OPFOR)";
						value = "OPF_F";
					};
					class AAF
					{
						name = "AAF (Independent)";
						value = "IND_F";
					};
					class WWII_faction_DE_1939
					{
						name = "[DE][1939] Wehrmacht (BLUFOR)";
						value = "WWII_faction_DE_1939";
					};
					class WWII_faction_PL_1939
					{
						name = "[PL][1939] Wojsk (Independent)";
						value = "WWII_faction_PL_1939";
					};
				};
			};
			class Infantry
			{
				displayName = "Infantry Weighting";
				description = "Weighted chance to spawn an infantry group. Valid values are 0-10.";
				typeName = "NUMBER";
				defaultValue = 5;
			};
			class Motorized
			{
				displayName = "Motorized Weighting";
				description = "Weighted chance to spawn a motorized group. Valid values are 0-10.";
				typeName = "NUMBER";
				defaultValue = 0;
			};
			class Mechanized
			{
				displayName = "Mechanized Weighting";
				description = "Weighted chance to spawn a mechanized group. Valid values are 0-10.";
				typeName = "NUMBER";
				defaultValue = 0;
			};
			class Armored
			{
				displayName = "Armored Weighting";
				description = "Weighted chance to spawn an armored group. Valid values are 0-10.";
				typeName = "NUMBER";
				defaultValue = 0;
			};
			class BlacklistedGroups
			{
				displayName = "Blacklisted Groups";
				description = "Classnames of blacklisted groups.";
				typeName = "STRING";
				defaultValue = "";
			};
		};
		class ModuleDescription: ModuleDescription
		{
			description[] = {"Module periodically creates groups of non-player units and vehicles until set manpower cap is reached. Module can also be synced with 1 or more [Spawn AI: Spawnpoint] modules to add more possible spawnpoints. In that case spawn position is selected at random.", "", "NOTE: If all group weights (Infantry/Motorized/Mechanized/Armored) set to 0, no groups will spawn on position of the [Spawn AI] module."};
			sync[] = {"ModuleSpawnAIPoint_F", "StartGroup"};
			position = 1;
			direction = 1;
			class StartGroup: AnyAI
			{
				description[] = {"Maximum manpower when groups can still be spawned. When the manpower limit is reached, spawning is paused.", "NOTE: The code expression that is executed on spawned group will also be executed on the synced group."};
				optional = 1;
				duplicate = 1;
			};
			class ModuleSpawnAIPoint_F
			{
				optional = 1;
				duplicate = 1;
			};
		};
	};
	class ModuleSpawnAIPoint_F: Module_F
	{
		author = "Bohemia Interactive";
		_generalMacro = "ModuleSpawnAIPoint_F";
		scope = 2;
		isGlobal = 0;
		isTriggerActivated = 1;
		displayName = "Spawn AI: Spawnpoint";
		function = "bis_fnc_moduleSpawnAIPoint";
		functionPriority = 11;
		icon = "\a3\Modules_F\Data\iconStrategicMapORBAT_ca.paa";
		isDisposable = 0;
		class Arguments
		{
			class Faction
			{
				displayName = "Faction";
				description = "Faction of groups spawned at the point. It needs to match the side of the [Spawn AI] module for the point to work.";
				class values
				{
					class NATO
					{
						name = "NATO (BLUFOR)";
						value = "BLU_F";
						default = 1;
					};
					class FIA
					{
						name = "FIA (BLUFOR)";
						value = "Guerilla";
					};
					class CSAT
					{
						name = "CSAT (OPFOR)";
						value = "OPF_F";
					};
					class AAF
					{
						name = "AAF (Independent)";
						value = "IND_F";
					};
					class WWII_faction_DE_1939
					{
						name = "[DE][1939] Wehrmacht (BLUFOR)";
						value = "WWII_faction_DE_1939";
					};
					class WWII_faction_PL_1939
					{
						name = "[PL][1939] Wojsk (Independent)";
						value = "WWII_faction_PL_1939";
					};
				};
			};
			class Infantry
			{
				displayName = "Infantry";
				description = "Weighted chance to spawn an infantry group. Valid values are 0-10.";
				typeName = "NUMBER";
				defaultValue = 5;
			};
			class Motorized
			{
				displayName = "Motorized Infantry";
				description = "Weighted chance to spawn a motorized infantry group. Valid values are 0-10.";
				typeName = "NUMBER";
				defaultValue = 0;
			};
			class Mechanized
			{
				displayName = "Mechanized Infantry";
				description = "Weighted chance to spawn a mechanized infantry group. Valid values are 0-10.";
				typeName = "NUMBER";
				defaultValue = 0;
			};
			class Armored
			{
				displayName = "Armored";
				description = "Weighted chance to spawn an armored group. Number of vehicles per spawn can be limited in [Spawn AI] module. Valid values are 0-10.";
				typeName = "NUMBER";
				defaultValue = 0;
			};
		};
		class ModuleDescription: ModuleDescription
		{
			description[] = {"Module defines spawnpoint for AI groups, namely their faction, position, direction and type of groups that can be spawned there. Module needs to be synced to a [Spawn AI] module to work. If there are several [Spawn AI: Spawnpoint] modules synced to [Spawn AI] module, single spawnpoint is chosen at random every time a group should be spawned.", "", "NOTE: If all group weights (Infantry/Motorized/Mechanized/Armored) set to 0, the spawnpoint will be disabled."};
			sync[] = {"ModuleSpawnAI_F"};
			position = 1;
			direction = 1;
		};
	};
};

 

Upon testing it out in game, I get an error message that points to this portion of BI's code in initSpawnpoints.sqf

 

//filter out spawnpoints without any group type weight, or with wrong faction
{
	if (true) then
	{
		_point = _x;
		_i = _forEachIndex;
		_faction = _point getVariable ["Faction",""];

		//check if combination Side + Faction is valid
		if !((_cfgRoot >> _sideStr >> _faction) call Bis_fnc_getCfgIsClass) exitWith
		{
			["[%3][%4] Combination | side=%1 + faction=%2 | is not valid!",_sideStr,_faction,_emitter,_point] call bis_fnc_error;

			_points set [_i, objNull];
		};

From what I understand, it's telling me that my faction and side don't match up, or that my faction does not exist. Anybody have any clues as to what could be the issue? (The error in the code I posted is what shows up in game).

 

Edit: Forgot, my Faction's cfgFactionClasses would probably be helpful.

class cfgFactionClasses
{
	class WWII_faction_DE_1939
	{
		displayName = "[DE][1939] Wehrmacht"; //Faction name in-game
		priority = 1; //How far down it is on the menu
		side = West;
	};
};

 

 

 

Edited by Dedmen
Put huge codeblock into spoiler

Share this post


Link to post
Share on other sites
Posted (edited)
Spoiler

class CfgGroups
{
    class West
    {
        class WWII_faction_Heer_1939
        {
            name = "[DE][1939] Wehrmacht";
            class Infantry
            {
                name = "Infantry";
                class HEER_InfSquad_1939
                {
                    name = "Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Gefreitor";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                    class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                    class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-15,-15,0};
                    };
                    class Unit5
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-20,-20,0};
                    };
                    class Unit6
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-25,-25,0};
                    };
                    class Unit7
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_MG";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
                    class Unit8
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Munitionstrager";
                        rank = "Private";
                        position[] = {15,-15,0};
                    };
                    class Unit9
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Assistent_MG";
                        rank = "Private";
                        position[] = {20,-20,0};
                    };
                };
                class HEER_SS_InfSquad_1939
                {
                    name = "Gruppen (SS)";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_SS_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_SS_Gefreitor";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_SS_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                    class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_SS_Schutze";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                    class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_SS_Schutze";
                        rank = "Private";
                        position[] = {-15,-15,0};
                    };
                    class Unit5
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_SS_Schutze";
                        rank = "Private";
                        position[] = {-20,-20,0};
                    };
                    class Unit6
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_SS_Schutze";
                        rank = "Private";
                        position[] = {-25,-25,0};
                    };
                    class Unit7
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_SS_MG";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
                    class Unit8
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_SS_Munitionstrager";
                        rank = "Private";
                        position[] = {15,-15,0};
                    };
                    class Unit9
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_SS_Assistent_MG";
                        rank = "Private";
                        position[] = {20,-20,0};
                    };
                };
                class HEER_ATSquad_1939
                {
                    name = "Panzerabwehrgruppe";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_AT";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_AT";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                    class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_AT";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
                    class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Assistent_AT";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                    class Unit5
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Assistent_AT";
                        rank = "Private";
                        position[] = {15,-15,0};
                    };
                    class Unit6
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Assistent_AT";
                        rank = "Private";
                        position[] = {20,-20,0};
                    };
                };
                class HEER_HQSquad_1939
                {
                    name = "Zugtrupp";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                    class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                };
            };
            class Support
			{
                name = "Support Infantry";
                class HEER_Pioneer_1939
                {
                    name = "Pioneers";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Pioneer";
                        rank = "Private";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Pioneer";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                    class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Pioneer";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                    class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Pioneer";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
                    class Unit5
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Pioneer";
                        rank = "Private";
                        position[] = {-15,-15,0};
                    };
                    class Unit6
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Pioneer";
                        rank = "Private";
                        position[] = {15,-15,0};
                    };
                    class Unit7
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Pioneer";
                        rank = "Private";
                        position[] = {-20,-20,0};
                    };
                };
                class HEER_Sanitater_1939
                {
                    name = "Sanitater";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Sanitater";
                        rank = "Private";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Sanitater";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                    class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Sanitater";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                };
            };
			class Motorized
			{
				name = "Motorized";
                class HEER_MotSquad_1_1939
                {
                    name = "Mot. Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Gefreitor";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                    class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                    class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-15,-15,0};
                    };
                    class Unit5
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-20,-20,0};
                    };
                    class Unit6
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-25,-25,0};
                    };
                    class Unit7
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_MG";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
                    class Unit8
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Munitionstrager";
                        rank = "Private";
                        position[] = {15,-15,0};
                    };
                    class Unit9
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Assistent_MG";
                        rank = "Private";
                        position[] = {20,-20,0};
                    };
					class Unit10
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_OpelBlitz_IF";
                        rank = "Private";
                        position[] = {20,-25,0};
                    };
                };
				class HEER_MotSquad_2_1939
                {
                    name = "Mot. Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Gefreitor";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                    class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                    class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-15,-15,0};
                    };
                    class Unit5
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-20,-20,0};
                    };
                    class Unit6
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-25,-25,0};
                    };
                    class Unit7
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_MG";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
                    class Unit8
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Munitionstrager";
                        rank = "Private";
                        position[] = {15,-15,0};
                    };
                    class Unit9
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Assistent_MG";
                        rank = "Private";
                        position[] = {20,-20,0};
                    };
					class Unit10
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_OpelBlitz_Tent_IF";
                        rank = "Private";
                        position[] = {20,-25,0};
                    };
                };
				class HEER_MotSquad_3_1939
                {
                    name = "Mot. Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Gefreitor";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                    class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                    class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-15,-15,0};
                    };
                    class Unit5
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-20,-20,0};
                    };
                    class Unit6
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-25,-25,0};
                    };
                    class Unit7
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_MG";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
                    class Unit8
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Munitionstrager";
                        rank = "Private";
                        position[] = {15,-15,0};
                    };
                    class Unit9
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Assistent_MG";
                        rank = "Private";
                        position[] = {20,-20,0};
                    };
					class Unit10
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_OpelBlitz";
                        rank = "Private";
                        position[] = {20,-25,0};
                    };
                };
				class HEER_MotSquad_4_1939
                {
                    name = "Mot. Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Gefreitor";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                    class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                    class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-15,-15,0};
                    };
                    class Unit5
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-20,-20,0};
                    };
                    class Unit6
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-25,-25,0};
                    };
                    class Unit7
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_MG";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
                    class Unit8
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Munitionstrager";
                        rank = "Private";
                        position[] = {15,-15,0};
                    };
                    class Unit9
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Assistent_MG";
                        rank = "Private";
                        position[] = {20,-20,0};
                    };
					class Unit10
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_OpelBlitz2";
                        rank = "Private";
                        position[] = {20,-25,0};
                    };
                };
				class HEER_MotSquad_5_1939
                {
                    name = "Mot. Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Gefreitor";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                    class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                    class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-15,-15,0};
                    };
                    class Unit5
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-20,-20,0};
                    };
                    class Unit6
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-25,-25,0};
                    };
                    class Unit7
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_MG";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
                    class Unit8
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Munitionstrager";
                        rank = "Private";
                        position[] = {15,-15,0};
                    };
                    class Unit9
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Assistent_MG";
                        rank = "Private";
                        position[] = {20,-20,0};
                    };
					class Unit10
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_OpelBlitz3";
                        rank = "Private";
                        position[] = {20,-25,0};
                    };
                };
				class HEER_MotSquad_6_1939
                {
                    name = "Mot. Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Gefreitor";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                    class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                    class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-15,-15,0};
                    };
                    class Unit5
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-20,-20,0};
                    };
                    class Unit6
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-25,-25,0};
                    };
                    class Unit7
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_MG";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
                    class Unit8
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Munitionstrager";
                        rank = "Private";
                        position[] = {15,-15,0};
                    };
                    class Unit9
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Assistent_MG";
                        rank = "Private";
                        position[] = {20,-20,0};
                    };
					class Unit10
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_PragaRV";
                        rank = "Private";
                        position[] = {20,-25,0};
                    };
                };
				class HEER_MotHQSquad_1939
                {
                    name = "Mot. Zugtrupp";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                    class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
					class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_OpelBlitz_Command_IF";
                        rank = "Private";
                        position[] = {-10,-15,0};
                    };
                };
			};
			class Mechanized
			{
				name = "Mechanized";
                class HEER_MechSquad_1_1939
                {
                    name = "Mech. Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Gefreitor";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                    class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                    class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-15,-15,0};
                    };
                    class Unit5
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-20,-20,0};
                    };
                    class Unit6
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-25,-25,0};
                    };
                    class Unit7
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_MG";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
                    class Unit8
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Munitionstrager";
                        rank = "Private";
                        position[] = {15,-15,0};
                    };
                    class Unit9
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Assistent_MG";
                        rank = "Private";
                        position[] = {20,-20,0};
                    };
					class Unit10
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_OpelBlitz_IF";
                        rank = "Private";
                        position[] = {20,-25,0};
                    };
					class Unit11
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIID";
                        rank = "Private";
                        position[] = {-20,-25,0};
                    };
                };
				class HEER_MechSquad_2_1939
                {
                    name = "Mech. Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Gefreitor";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                    class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                    class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-15,-15,0};
                    };
                    class Unit5
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-20,-20,0};
                    };
                    class Unit6
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-25,-25,0};
                    };
                    class Unit7
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_MG";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
                    class Unit8
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Munitionstrager";
                        rank = "Private";
                        position[] = {15,-15,0};
                    };
                    class Unit9
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Assistent_MG";
                        rank = "Private";
                        position[] = {20,-20,0};
                    };
					class Unit10
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_OpelBlitz_IF";
                        rank = "Private";
                        position[] = {20,-25,0};
                    };
					class Unit11
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIIC";
                        rank = "Private";
                        position[] = {-20,-25,0};
                    };
                };
				class HEER_MechSquad_3_1939
                {
                    name = "Mech. Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Gefreitor";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                    class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                    class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-15,-15,0};
                    };
                    class Unit5
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-20,-20,0};
                    };
                    class Unit6
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-25,-25,0};
                    };
                    class Unit7
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_MG";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
                    class Unit8
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Munitionstrager";
                        rank = "Private";
                        position[] = {15,-15,0};
                    };
                    class Unit9
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Assistent_MG";
                        rank = "Private";
                        position[] = {20,-20,0};
                    };
					class Unit10
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_OpelBlitz_IF";
                        rank = "Private";
                        position[] = {20,-25,0};
                    };
					class Unit11
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIIB";
                        rank = "Private";
                        position[] = {-20,-25,0};
                    };
                };
			};
			class Armored
			{
				Name = "Armored";
				class HEER_HQ_Armor_1_1939
                {
                    name = "HQ Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzbfwI";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzbfwIA";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIIB";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                };
				class HEER_Light_Armor_1_1939
                {
                    name = "Leichter Panzer Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzII";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIa";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIa";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
					class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIb";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
					class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIb";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                };
				class HEER_Light_Armor_2_1939
                {
                    name = "Leichter Panzer Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzII";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzkpfwIA";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzkpfwI";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
					class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_ltm38";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
					class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_ltm38";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                };
				class HEER_Light_Armor_3_1939
                {
                    name = "Leichter Panzer Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzII";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzkpfwIA";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzkpfwI";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
					class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_ltm38";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
					class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_ltm35";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                };
				class HEER_Medium_Armor_1_1939
                {
                    name = "Mittlerer Panzer Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIID";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIIB";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIIC";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
					class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIIB";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
					class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIIC";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                };
				class HEER_Medium_Armor_2_1939
                {
                    name = "Mittlerer Panzer Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIIB";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIIC";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzII";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
					class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIa";
                        rank = "Private";
                        position[] = {10,-10,0};
                    };
					class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIIb";
                        rank = "Private";
                        position[] = {-10,-10,0};
                    };
                };
				class HEER_Heavy_Armor_1_1939
                {
                    name = "Schwerer Panzer Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIV";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIVB";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
					class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_pzIVcv38";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
                };
			};
			class SpecOps
			{
				name = "Recon";
				class HEER_Recon_1_1939
                {
                    name = "Recon Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
					class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_KFZ1";
                        rank = "Private";
                        position[] = {-5,-10,0};
                    };
                };
				class HEER_Recon_2_1939
                {
                    name = "Recon Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
					class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_KFZ1";
                        rank = "Private";
                        position[] = {-5,-10,0};
                    };
					class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_SdKfz222";
                        rank = "Private";
                        position[] = {5,-10,0};
                    };
                };
				class HEER_Recon_3_1939
                {
                    name = "Recon Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
					class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_KFZ1_hood";
                        rank = "Private";
                        position[] = {-5,-10,0};
                    };
                };
				class HEER_Recon_4_1939
                {
                    name = "Recon Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_NCO";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                    class Unit2
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_Soldier_Schutze";
                        rank = "Private";
                        position[] = {-5,-5,0};
                    };
					class Unit3
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_KFZ1_hood";
                        rank = "Private";
                        position[] = {-5,-10,0};
                    };
					class Unit4
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_SdKfz222";
                        rank = "Private";
                        position[] = {5,-10,0};
                    };
                };
			};
			class Air
			{
				name = "Air";
				class HEER_Air_1_1939
                {
                    name = "Luftwaffe Gruppen";
                    side = 0;
                    faction = "WWII_faction_DE_1939";
                    rarityGroup = 0.3;
                    class Unit0
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_JU87";
                        rank = "SERGEANT";
                        position[] = {0,0,0};
                    };
                    class Unit1
                    {
                        side = 0;
                        vehicle = "WWII_DE_1939_JU87";
                        rank = "CORPORAL";
                        position[] = {5,-5,0};
                    };
                };
			};
        };
    };
};

Here you go

 

EDIT: I'm an idiot, the faction name in my CfgGroups is different than my faction classes. Changing it in the description.ext to the correct one has allowed for my units to spawn. I'll update my addon with the correct name and post here with the results. I haven't seen any threads with people trying to do it by addon so hopefully this will help someone in the future.

 

Updated my addon and it all seems to be working now!

Edited by Dedmen
Put huge codeblock into spoiler

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

×