Jump to content
Sign in to follow this  
razzored

SpawnAI module still a pain

Recommended Posts

So any CFG sharks in here who can tell me what in the world keeps being wrong with this?
I've rewritten and reformated countless times, no matter what.. just wont work.
(It's supposed to be used  with the spawnAI module).

Problem is with the motorized/mechanized or armor sections of the groups.

 

Spoiler

class CfgGroups {

    class west {

        class myCustomWestFaction { //Name for your custom faction

            class Infantry {    //SpawnAI module looks for this class

            	class myCustomWestInfGroup_1units {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_B_USMC_Soldier_TL_des";     //Class name of unit/vehicle
                        side = 1;                    //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";            //rank name from CfgRanks
                        position[] = { 0, 0, 0 };    //offset position unit spawns from spawn point
                    };
                };
				
            	class myCustomWestInfGroup_1SNIPER {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_B_USMC_Sniper_M40A3_des";     //Class name of unit/vehicle
                        side = 1;                    //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";            //rank name from CfgRanks
                        position[] = { 0, 0, 0 };    //offset position unit spawns from spawn point
                    };
                };				

                class myCustomWestInfGroup_3units {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_B_USMC_Soldier_TL_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";           //rank name from CfgRanks
                        position[] = { 0, 0, 0 };   //offset position unit spawns from spawn point
                    };

                    class unit1 {
                        vehicle = "CUP_B_USMC_Soldier_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 5, -5, 0 };  //offset position unit spawns from spawn point
                    };

                    class unit2 {
                        vehicle = "CUP_B_USMC_Soldier_MG_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { -5, -5, 0 }; //offset position unit spawns from spawn point
                    };

                };

                class myCustomWestInfGroup_6units {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_B_USMC_Soldier_TL_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";           //rank name from CfgRanks
                        position[] = { 0, 0, 0 };   //offset position unit spawns from spawn point
                    };

                    class unit1 {
                        vehicle = "CUP_B_USMC_Soldier_MG_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 5, -5, 0 };  //offset position unit spawns from spawn point
                    };

                    class unit2 {
                        vehicle = "CUP_B_USMC_Soldier_LAT_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { -5, -5, 0 }; //offset position unit spawns from spawn point
                    };

                    class unit3 {
                        vehicle = "CUP_B_USMC_Soldier_GL_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 10, -10, 0 }; //offset position unit spawns from spawn point
                    };

                    class unit4 {
                        vehicle = "CUP_B_USMC_Soldier_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { -10, -10, 0 }; //offset position unit spawns from spawn point
                    };

                    class unit5 {
                        vehicle = "CUP_B_USMC_Soldier_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 15, -15, 0 }; //offset position unit spawns from spawn point
                    };

                };
				
                class myCustomWestInfGroup_3unitsmixed {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_B_USMC_Soldier_TL_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";           //rank name from CfgRanks
                        position[] = { 0, 0, 0 };   //offset position unit spawns from spawn point
                    };

                    class unit1 {
                        vehicle = "CUP_B_USMC_Soldier_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 5, -5, 0 };  //offset position unit spawns from spawn point
                    };

                    class unit2 {
                        vehicle = "CUP_B_USMC_Medic_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { -5, -5, 0 }; //offset position unit spawns from spawn point
                    };

                };

                class myCustomWestInfGroup_6unitsmixed {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_B_USMC_Soldier_TL_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";           //rank name from CfgRanks
                        position[] = { 0, 0, 0 };   //offset position unit spawns from spawn point
                    };

                    class unit1 {
                        vehicle = "CUP_B_USMC_Soldier_MG_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 5, -5, 0 };  //offset position unit spawns from spawn point
                    };

                    class unit2 {
                        vehicle = "CUP_B_USMC_Soldier_LAT_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { -5, -5, 0 }; //offset position unit spawns from spawn point
                    };

                    class unit3 {
                        vehicle = "CUP_B_USMC_Soldier_GL_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 10, -10, 0 }; //offset position unit spawns from spawn point
                    };

                    class unit4 {
                        vehicle = "CUP_B_USMC_Medic_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { -10, -10, 0 }; //offset position unit spawns from spawn point
                    };

                    class unit5 {
                        vehicle = "CUP_B_USMC_Soldier_des";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 15, -15, 0 }; //offset position unit spawns from spawn point
                    };
					
                };				
            };

            class Motorized {    //SpawnAI module looks for this class

                class WESTMotorized_1units {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_B_HMMWV_SOV_M2_USA";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";           //rank name from CfgRanks
                        position[] = { 0, 0, 0 };   //offset position unit spawns from spawn point
                    };

                };
            };
			
            class Mechanized {    //SpawnAI module looks for this class

                class WESTMechanized_1units {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_B_LAV25M240_desert_USMC";    //Class name of unit/vehicle
                        side = 1;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";           //rank name from CfgRanks
                        position[] = { 0, 0, 0 };   //offset position unit spawns from spawn point
                    };

                };
            };
			
            class Armored {			//SpawnAI module looks for this class

                class myCustomWestTanks_1 {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_B_M60A3_USMC";     //Class name of unit/vehicle
                        side = 1;                    //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";            //rank name from CfgRanks
                        position[] = { 0, 0, 0 };    //offset position unit spawns from spawn point
                    };
					
                };				
            };
			
    class east {

        class myCustomEastFaction { //Name for your custom faction

            class Infantry {    //SpawnAI module looks for this class

            	class myCustomEastInfGroup_1units {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_O_TK_SpecOps";     //Class name of unit/vehicle
                        side = 0;                    //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";            //rank name from CfgRanks
                        position[] = { 0, 0, 0 };    //offset position unit spawns from spawn point
                    };
                };
				
            	class myCustomEastInfGroup_1SNIPER {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_O_TK_Sniper";     //Class name of unit/vehicle
                        side = 0;                    //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";            //rank name from CfgRanks
                        position[] = { 0, 0, 0 };    //offset position unit spawns from spawn point
                    };
                };			

            	class myCustomEastInfGroup_1Bomber {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_O_TK_INS_Bomber";     //Class name of unit/vehicle
                        side = 0;                    //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";            //rank name from CfgRanks
                        position[] = { 0, 0, 0 };    //offset position unit spawns from spawn point
                    };
                };					

                class myCustomEastInfGroup_3units {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_O_TK_SpecOps_TL";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";           //rank name from CfgRanks
                        position[] = { 0, 0, 0 };   //offset position unit spawns from spawn point
                    };

                    class unit1 {
                        vehicle = "CUP_O_TK_SpecOps_MG";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 5, -5, 0 };  //offset position unit spawns from spawn point
                    };

                    class unit2 {
                        vehicle = "CUP_O_TK_INS_Soldier_AT";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { -5, -5, 0 }; //offset position unit spawns from spawn point
                    };

                };

                class myCustomEastInfGroup_6units {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_O_TK_SpecOps_TL";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";           //rank name from CfgRanks
                        position[] = { 0, 0, 0 };   //offset position unit spawns from spawn point
                    };

                    class unit1 {
                        vehicle = "CUP_O_TK_INS_Soldier_AT";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 5, -5, 0 };  //offset position unit spawns from spawn point
                    };

                    class unit2 {
                        vehicle = "CUP_O_TK_SpecOps_MG";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { -5, -5, 0 }; //offset position unit spawns from spawn point
                    };

                    class unit3 {
                        vehicle = "CUP_O_TK_SpecOps_MG";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 10, -10, 0 }; //offset position unit spawns from spawn point
                    };

                    class unit4 {
                        vehicle = "CUP_O_TK_SpecOps";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { -10, -10, 0 }; //offset position unit spawns from spawn point
                    };

                    class unit5 {
                        vehicle = "CUP_O_TK_SpecOps";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 15, -15, 0 }; //offset position unit spawns from spawn point
                    };

                };
				
                class myCustomEastInfGroup_3unitsMixed {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_O_TK_SpecOps_TL";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";           //rank name from CfgRanks
                        position[] = { 0, 0, 0 };   //offset position unit spawns from spawn point
                    };

                    class unit1 {
                        vehicle = "CUP_O_TK_Medic";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 5, -5, 0 };  //offset position unit spawns from spawn point
                    };

                    class unit2 {
                        vehicle = "CUP_O_TK_INS_Soldier_AT";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { -5, -5, 0 }; //offset position unit spawns from spawn point
                    };

                };

                class myCustomEastInfGroup_6unitsMixed {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_O_TK_SpecOps_TL";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";           //rank name from CfgRanks
                        position[] = { 0, 0, 0 };   //offset position unit spawns from spawn point
                    };

                    class unit1 {
                        vehicle = "CUP_O_TK_INS_Soldier_AT";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 5, -5, 0 };  //offset position unit spawns from spawn point
                    };

                    class unit2 {
                        vehicle = "CUP_O_TK_SpecOps_MG";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { -5, -5, 0 }; //offset position unit spawns from spawn point
                    };

                    class unit3 {
                        vehicle = "CUP_O_TK_INS__Soldier_GL";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 10, -10, 0 }; //offset position unit spawns from spawn point
                    };

                    class unit4 {
                        vehicle = "CUP_O_TK_Medic";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { -10, -10, 0 }; //offset position unit spawns from spawn point
                    };

                    class unit5 {
                        vehicle = "CUP_O_TK_INS_Bomber";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 15, -15, 0 }; //offset position unit spawns from spawn point
                    };

                };				
            };

            class Motorized {    //SpawnAI module looks for this class

                class EASTMotorized_1units {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_O_LR_MG_TKA";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";           //rank name from CfgRanks
                        position[] = { 0, 0, 0 };   //offset position unit spawns from spawn point
                    };

                };
            };
			
            class Mechanized {    //SpawnAI module looks for this class

                class EASTMechanized_1units {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_O_BTR80_TK";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";           //rank name from CfgRanks
                        position[] = { 0, 0, 0 };   //offset position unit spawns from spawn point
                    };

                };
            };
			

            class Armored {		//SpawnAI module looks for this class
			
				class CUPVDVArmor_4units {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_O_T72_TK";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "SERGANT";           //rank name from CfgRanks
                        position[] = { 0, 0, 0 };   //offset position unit spawns from spawn point
                    };

				};
			};  
        };
    };
};	

 

 

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  

×