Jump to content
DOA

spawn AI module help.

Recommended Posts

Hi everyone, 
Thanks in advance for your help. I have put down spawn AI module and created a custom faction in description.ext using CUP vehicles. The spawn AI module seems to be working. It spawns Cup vehicles. 
I will attach a small sample mission that I am making on CUP Desert E island to use as a template for future missions. I will also attach shots of my description and the modules menu. 
The issues I am having are 
1. If I spawn more than one vehicle in a group, they spawn on top of each other and explode so I am limited to spawning single groups of one vehicle at a time. I have tried adjusting the position but same result.  
2. I have several units created in description.ext for each: infantry, motorized and  Armor. The Spawn AI spawns unit 0 and never spawns any of the other vehicles in it's class. 
3. If I switch BMP2 to the first vehicle in the group, when it spawns two crew jump out of the vehicle and run along beside it. 
If anyone knows where there is good documentation on the spawn AI and it's associated modules please forward that link if you have one. I can't find much with google searches.
You can download my sample mission here: http://www.thegraveyardshift.net/download Thanks again for your time and help, it is much appreciated...DOA aka: David ArmAstrong. 

spawnAI_Menu.jpg

//Description.ext East classes and groups. 

    class east {

        class CUPVDV { //Name for your custom faction

            class Infantry {    //SpawnAI module looks for this class

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

                    class unit0 {
                        vehicle = "CUP_O_RU_Soldier_TL_VDV_M_EMR";    //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_RU_Soldier_GL_VDV_M_EMR";    //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_RU_Soldier_MG_VDV_M_EMR";    //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_RU_Medic_VDV_M_EMR";    //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_RU_Soldier_VDV_M_EMR";    //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_RU_Soldier_AT_VDV_M_EMR";    //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 unit6 {
                        vehicle = "CUP_O_RU_Soldier_VDV_M_EMR";    //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 unit7 {
                        vehicle = "CUP_O_RU_Soldier_VDV_M_EMR";    //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 CUPVDVMotorized_3units {    //Can be called anything, name used for blacklisting

                    class unit0 {
                        vehicle = "CUP_O_Ural_Refuel_RU";    //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_UAZ_MG_RU";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 30, -30, 0 };  //offset position unit spawns from spawn point
                    };

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

                };
            };


			//no Mech groups. Combined with Motorized
			//SpawnAI module looks for this class for
            class Mechanized {};    //SpawnAI module looks for this class

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

                    class unit0 {
                        vehicle = "CUP_O_BMP2_RU";    //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_T72_RU";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 30, -30, 0 };  //offset position unit spawns from spawn point
                    };

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

                    class unit3 {
                        vehicle = "CUP_O_BMP3_RU";    //Class name of unit/vehicle
                        side = 0;                   //index of unit side being [ east, west, independent, civilian ]
                        rank = "PRIVATE";           //rank name from CfgRanks
                        position[] = { 40, -40, 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

×