RJ Wattenhofer

Tech writing, 3D model building and game design.

March 19, 2024

ArmA 2 | Spawning Groups with BIS_fnc_spawnGroup

A list of pre-made groups you can spawn in your mission

Place down a Functions module, a trigger and a marker on your map and then create a file named group-spawn.sqf with the following code in it:

[getMarkerPos "YOUR-MARKER-NAME", WEST, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Mechanized" >> "USMC_MechInfSquad")] call BIS_fnc_spawnGroup;

Replace 'YOUR-MARKER-NAME' with the name of the marker on your map and drop the .sqf file into your mission folder. Open the trigger and place this code in its 'On Act.' field:

nul = execVM "group-spawn.sqf";

You can now swap out the group in your .sqf file with any of the groups listed below:

All code starts after the marker position: [getMarkerPos "YOUR-MARKER-NAME",...

UN: UNITED NATIONS




Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_UN" >> "Infantry" >> "UN_Patrol")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_UN" >> "Motorized" >> "UN_MotorizedPatrol")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_UN" >> "Mechanized" >> "UN_MechanizedPatrolBMP2")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_UN" >> "Mechanized" >> "UN_MechanizedPatrolM113")] call BIS_fnc_spawnGroup;



WEST: UNITED STATES MARINE CORP




WEST, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Infantry" >> "USMC_InfSquad")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Infantry" >> "USMC_FireTeam")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Infantry" >> "USMC_FireTeam_MG")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Infantry" >> "USMC_FireTeam_AT")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Infantry" >> "USMC_FireTeam_Support")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Infantry" >> "USMC_HeavyATTeam")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Infantry" >> "USMC_SniperTeam")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Infantry" >> "USMC_FRTeam")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Infantry" >> "USMC_FRTeam_Razor")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Motorized" >> "USMC_MotInfSection")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Motorized" >> "USMC_MotInfSection_AT")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Mechanized" >> "USMC_MechInfSquad")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Mechanized" >> "USMC_MechReconSection")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Armored" >> "USMC_TankPlatoon")] call BIS_fnc_spawnGroup;




WEST: UNITED STATES ARMY





WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_US" >> "Motorized" >> "US_MotorizedSection")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_US" >> "Motorized" >> "US_MotorizedSectionAT")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_US" >> "Motorized" >> "US_DeltaPatrolATV")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_US" >> "Motorized" >> "US_DeltaPatrolHMMWV")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_US" >> "Mechanized" >> "US_MechanizedInfantrySquadICVM2")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_US" >> "Mechanized" >> "US_MechanizedInfantrySquadICVMK19")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_US" >> "Mechanized" >> "US_MechanizedReconSection")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_US" >> "Armored" >> "US_MGSPlatoon")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_US" >> "Armored" >> "US_M1A2Platoon")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_US" >> "Armored" >> "US_M1A1Platoon")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_US" >> "Armored" >> "US_M1A2Section")] call BIS_fnc_spawnGroup;



WEST: CHERNARUS DEFENCE FORCES





WEST, (configFile >> "CfgGroups" >> "West" >> "CDF" >> "Infantry" >> "CDF_InfSquad")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "CDF" >> "Infantry" >> "CDF_InfSquad_Weapons")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "CDF" >> "Infantry" >> "CDF_InfSection_AT")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "CDF" >> "Infantry" >> "CDF_InfSection_AA")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "CDF" >> "Infantry" >> "CDF_InfSection_MG")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "CDF" >> "Infantry" >> "CDF_InfSection_Patrol")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "CDF" >> "Infantry" >> "CDF_SniperTeam")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "CDF" >> "Motorized" >> "CDF_MotInfSquad")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "CDF" >> "Motorized" >> "CDF_MotInfSection")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "CDF" >> "Motorized" >> "CDF_MotInfSection_Weapons")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "CDF" >> "Mechanized" >> "CDF_MechInfSquad")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "CDF" >> "Mechanized" >> "CDF_MechReconSection")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "CDF" >> "Mechanized" >> "CDF_MechATSection")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "CDF" >> "Armored" >> "CDF_TankPlatoon")] call BIS_fnc_spawnGroup;



WEST: ARMY OF THE CZECH REPUBLIC





WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_CZ" >> "Infantry" >> "ACR_InfantryPatrol")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_CZ" >> "Infantry" >> "ACR_InfantryPatrol_WDL")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_CZ" >> "Infantry" >> "ACR_InfantryTeam_DST")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_CZ" >> "Infantry" >> "ACR_InfantryTeam_WDL")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_CZ" >> "Infantry" >> "ACR_SpecialForcesTeam")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_CZ" >> "Motorized" >> "ACR_MotorizedPatrol")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_CZ" >> "Motorized" >> "ACR_SpecialForcesPatrolLandRover")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_CZ" >> "Motorized" >> "ACR_SpecialForcesPatrolATV")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_CZ" >> "Motorized" >> "ACR_MotorizedSection_DST")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_CZ" >> "Motorized" >> "ACR_MotorizedSection_WDL")] call BIS_fnc_spawnGroup;

WEST, (configFile >> "CfgGroups" >> "West" >> "BIS_CZ" >> "Mechanized" >> "ACR_MechanizedRecon_WDL")] call BIS_fnc_spawnGroup;




EAST: RUSSIA - UNION OF SOVIET SOCIALIST REPUBLICS






EAST, (configFile >> "CfgGroups" >> "East" >> "RU" >> "Infantry" >> "RU_InfSquad")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "RU" >> "Infantry" >> "RU_InfSection")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "RU" >> "Infantry" >> "RU_InfSection_AT")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "RU" >> "Infantry" >> "RU_InfSection_AA")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "RU" >> "Infantry" >> "RU_InfSection_MG")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "RU" >> "Infantry" >> "RU_SniperTeam")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "RU" >> "Infantry" >> "RUS_ReconTeam")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "RU" >> "Infantry" >> "MVD_AssaultTeam")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "RU" >> "Motorized" >> "RU_MotInfSquad")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "RU" >> "Motorized" >> "RU_MotInfSection_Recon")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "RU" >> "Motorized" >> "RU_MotInfSection_Patrol")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "RU" >> "Mechanized" >> "RU_MechInfSquad_1")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "RU" >> "Mechanized" >> "RU_MechInfSquad_2")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "RU" >> "Armored" >> "RU_TankPlatoon")] call BIS_fnc_spawnGroup;



EAST: TAKISTANI ARMY






EAST, (configFile >> "CfgGroups" >> "East" >> "BIS_TK" >> "Motorized" >> "TK_MotorizedInfanterySquad")] call BIS_fnc_spawnGroup; 

EAST, (configFile >> "CfgGroups" >> "East" >> "BIS_TK" >> "Motorized" >> "TK_MotorizedReconSection")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "BIS_TK" >> "Motorized" >> "TK_MotorizedPatrol")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "BIS_TK" >> "Mechanized" >> "TK_MechanizedInfantrySquadBMP2")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "BIS_TK" >> "Mechanized" >> "TK_MechanizedInfantrySquadBTR60")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "BIS_TK" >> "Mechanized" >> "TK_MechanizedSpecialSquad")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "BIS_TK" >> "Mechanized" >> "TK_MechanizedReconSection")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "BIS_TK" >> "Mechanized" >> "TK_MechanizedReconSectionAT")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "BIS_TK" >> "Armored" >> "TK_T72Platoon")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "BIS_TK" >> "Armored" >> "TK_T55Platoon")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "BIS_TK" >> "Armored" >> "TK_T34Platoon")] call BIS_fnc_spawnGroup;



EAST: INSURGENTS





EAST, (configFile >> "CfgGroups" >> "East" >> "INS" >> "Infantry" >> "INS_InfSquad")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "INS" >> "Infantry" >> "INS_InfSquad_Weapons")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "INS" >> "Infantry" >> "INS_InfSection_AT")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "INS" >> "Infantry" >> "INS_InfSection_AA")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "INS" >> "Infantry" >> "INS_SniperTeam")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "INS" >> "Infantry" >> "INS_MilitiaSquad")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "INS" >> "Motorized" >> "INS_MotInfSquad")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "INS" >> "Motorized" >> "INS_MotInfSection")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "INS" >> "Mechanized" >> "INS_MechInfSquad")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "INS" >> "Mechanized" >> "INS_MechInfSection")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "INS" >> "Mechanized" >> "INS_MechInfSection_AT")] call BIS_fnc_spawnGroup;

EAST, (configFile >> "CfgGroups" >> "East" >> "INS" >> "Armored" >> "INS_TankSection")] call BIS_fnc_spawnGroup;




RESISTANCE: CHERNARUS GUERRILAS






Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "Gue" >> "Infantry" >> "GUE_InfSquad")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "Gue" >> "Infantry" >> "GUE_InfSquad_Assault")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "Gue" >> "Infantry" >> "GUE_InfSquad_Weapons")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "Gue" >> "Infantry" >> "GUE_InfTeam_1")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "Gue" >> "Infantry" >> "GUE_InfTeam_2")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "Gue" >> "Infantry" >> "GUE_InfTeam_AT")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "Gue" >> "Infantry" >> "GUE_GrpInf_TeamAA")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "Gue" >> "Infantry" >> "GUE_GrpInf_TeamSniper")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "Gue" >> "Infantry" >> "GUE_MilitiaSquad")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "Gue" >> "Motorized" >> "GUE_MotInfSection")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "Gue" >> "Motorized" >> "GUE_MotInfSquad")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "Gue" >> "Mechanized" >> "GUE_MechInfSection")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "Gue" >> "Mechanized" >> "GUE_MechInfSquad")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "Gue" >> "Armored" >> "GUE_TankSection")] call BIS_fnc_spawnGroup;



RESISTANCE: TAKISTANI GUERRILAS




Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_TK_GUE" >> "Infantry" >> "TK_GUE_Group")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_TK_GUE" >> "Infantry" >> "TK_GUE_GroupWeapons")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_TK_GUE" >> "Infantry" >> "TK_GUE_Patrol")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_TK_GUE" >> "Infantry" >> "TK_GUE_ATTeam")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_TK_GUE" >> "Infantry" >> "TK_GUE_AATeam")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_TK_GUE" >> "Infantry" >> "TK_GUE_SniperTeam")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_TK_GUE" >> "Motorized" >> "TK_GUE_Technicals")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_TK_GUE" >> "Motorized" >> "TK_GUE_MotorizedGroup")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_TK_GUE" >> "Motorized" >> "TK_GUE_MotorizedPatrol")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_TK_GUE" >> "Mechanized" >> "TK_GUE_MechanizedPatrol")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_TK_GUE" >> "Mechanized" >> "TK_GUE_MechanizedGroup")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_TK_GUE" >> "Armored" >> "TK_GUE_T55Section")] call BIS_fnc_spawnGroup;

Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "BIS_TK_GUE" >> "Armored" >> "TK_GUE_T34Platoon")] call BIS_fnc_spawnGroup;


  • xing social button
  • linkedin social button
  • buffer social button
  • reddit social button
  • stumbleupon social button
  • facebook social button
  • google plus button
  • twitter social button
  • renren social button Renren
  • vkontakte social button Share in VK