Ambient Combat Manager - Group types: Difference between revisions
Jump to navigation
Jump to search
(added OA group types) |
(Added details about cfgGroup values) |
||
Line 1: | Line 1: | ||
[[Category:ArmA_2:_Editing|Ambient Combat Manager - Group types]] | [[Category:ArmA_2:_Editing|Ambient Combat Manager - Group types]] | ||
Group types used with the [[Ambient Combat Manager]]. | Group types used with the [[Ambient Combat Manager]] and the [[BIS_fnc_spawnGroup]] function. | ||
=== Use with ACM === | |||
By default the ACM will select group types from ''CfgGroups'', but you may want to use only a number of specific group types. You have the possibility of overriding the group type database with your own database, by using two functions. | By default the ACM will select group types from ''CfgGroups'', but you may want to use only a number of specific group types. You have the possibility of overriding the group type database with your own database, by using two functions. | ||
Line 10: | Line 12: | ||
{{codecomment|//Passing an empty types Array will completely disable the custom database and switch back to the default.}} | {{codecomment|//Passing an empty types Array will completely disable the custom database and switch back to the default.}} | ||
[<ACM reference | Object>, <types | Array of Configs and / or Strings>] call BIS_ACM_removeGroupClassesFunc; | [<ACM reference | Object>, <types | Array of Configs and / or Strings>] call BIS_ACM_removeGroupClassesFunc; | ||
=== Use with BIS_fnc_spawnGroup === | |||
To return a group for use with [[BIS_fnc_spawnGroup]] format it as follows. This example would return a Stryker MGS Platoon from ArmA2: Operation Arrowhead: | |||
([[configFile]] >> "CfgGroups" >> "West" >> "BIS_US" >> "Armored" >> "US_MGSPlatoon") | |||
"West" would be a [[Side]], "BIS_US" would be a [[faction]] and "Armored" would be one of the following: | |||
Infantry | |||
Air | |||
Mechanized | |||
Motorized | |||
Armored | |||
==ArmA 2== | ==ArmA 2== |
Revision as of 02:10, 23 October 2010
Group types used with the Ambient Combat Manager and the BIS_fnc_spawnGroup function.
Use with ACM
By default the ACM will select group types from CfgGroups, but you may want to use only a number of specific group types. You have the possibility of overriding the group type database with your own database, by using two functions.
//You can pass both actual CfgGroups Config entries or class name Strings.
[<ACM reference | Object>, <types | Array of Configs and / or Strings>] call BIS_ACM_addGroupClassesFunc;
//Passing an empty types Array will completely disable the custom database and switch back to the default.
[<ACM reference | Object>, <types | Array of Configs and / or Strings>] call BIS_ACM_removeGroupClassesFunc;
Use with BIS_fnc_spawnGroup
To return a group for use with BIS_fnc_spawnGroup format it as follows. This example would return a Stryker MGS Platoon from ArmA2: Operation Arrowhead:
(configFile >> "CfgGroups" >> "West" >> "BIS_US" >> "Armored" >> "US_MGSPlatoon")
"West" would be a Side, "BIS_US" would be a faction and "Armored" would be one of the following:
Infantry Air Mechanized Motorized Armored
ArmA 2
// USMC USMC_InfSquad USMC_FireTeam USMC_FireTeam_MG USMC_FireTeam_AT USMC_FireTeam_Support USMC_HeavyATTeam USMC_SniperTeam USMC_FRTeam USMC_FRTeam_Razor USMC_MotInfSection USMC_MotInfSection_AT USMC_MechInfSquad USMC_MechReconSection USMC_TankPlatoon USMC_AH1ZSquadron USMC_UH1YSquadron USMC_MV22Squadron USMC_MQ9Squadron USMC_F35Squadron USMC_AV8BFighterSquadron USMC_AV8BBomberSquadron // CDF CDF_InfSquad CDF_InfSquad_Weapons CDF_InfSection_AT CDF_InfSection_AA CDF_InfSection_MG CDF_InfSection_Patrol CDF_SniperTeam CDF_MotInfSquad CDF_MotInfSection CDF_MotInfSection_Weapons CDF_MechInfSquad CDF_MechReconSection CDF_MechATSection CDF_TankPlatoon CDF_Mi24DSquadron CDF_Mi8Squadron // RU RU_InfSquad RU_InfSection RU_InfSection_AT RU_InfSection_AA RU_InfSection_MG RU_SniperTeam RUS_ReconTeam MVD_AssaultTeam RU_MotInfSquad RU_MotInfSection_Recon RU_MotInfSection_Patrol RU_MechInfSquad_1 RU_MechInfSquad_2 RU_TankPlatoon RU_Mi24VSquadron RU_Mi24PSquadron RU_Pchela1TSquadron RU_Ka52Squadron RU_Mi8Squadron RU_Su34FighterSquadron // INS INS_InfSquad INS_InfSquad_Weapons INS_InfSection_AT INS_InfSection_AA INS_SniperTeam INS_MilitiaSquad INS_MotInfSquad INS_MotInfSection INS_MechInfSquad INS_MechInfSection INS_MechInfSection_AT INS_TankSection INS_Mi8Squadron // GUE GUE_InfSquad GUE_InfSquad_Assault GUE_InfSquad_Weapons GUE_InfTeam_1 GUE_InfTeam_2 GUE_InfTeam_AT GUE_GrpInf_TeamAA GUE_GrpInf_TeamSniper GUE_MilitiaSquad GUE_MotInfSection GUE_MotInfSquad GUE_MechInfSection GUE_MechInfSquad GUE_TankSection
ArmA 2: Operation Arrowhead
// BIS_US US_RifleSquad US_WeaponsSquad US_Team US_TeamMG US_TeamAT US_TeamSupport US_HeavyATTeam US_SniperTeam US_DeltaForceTeam US_MotorizedSection US_MotorizedSectionAT US_DeltaPatrolATV US_DeltaPatrolHMMWV US_MechanizedInfantrySquadICVM2 US_MechanizedInfantrySquadICVMK19 US_MechanizedReconSection US_MGSPlatoon US_M1A2Platoon US_M1A1Platoon US_M1A2Section US_A10Flight US_AH64DFlight US_AH6JFlight US_AH6XFlight US_C130JFlight US_CH47FFlight US_MH6JFlight US_MQ9Flight US_UH60MFlight // BIS_CZ ACR_InfantryPatrol ACR_SpecialForcesTeam ACR_MotorizedPatrol ACR_SpecialForcesPatrolLandRover ACR_SpecialForcesPatrolATV ACR_Mi171ShFlight ACR_Mi171Sh_RocketsFlight // BIS_GER KSKTeam // BIS_TK TK_InfantrySquad TK_InfantrySection TK_InfantrySectionAT TK_InfantrySectionAA TK_InfantrySectionMG TK_SniperTeam TK_SpecialPurposeSquad TK_MotorizedInfanterySquad TK_MotorizedReconSection TK_MotorizedPatrol TK_MechanizedInfantrySquadBMP2 TK_MechanizedInfantrySquadBTR60 TK_MechanizedSpecialSquad TK_MechanizedReconSection TK_MechanizedReconSectionAT TK_T72Platoon TK_T55Platoon TK_T34Platoon TK_An2Flight TK_Mi24_DFlight TK_Mi_17Flight TK_Su25Flight TK_UH1HFlight // BIS_TK_INS TK_INS_Group TK_INS_Patrol TK_INS_AATeam TK_INS_ATTeam TK_INS_Technicals TK_INS_MotorizedGroup TK_INS_MotorizedPatrolBTR40 // BIS_TK_GUE TK_GUE_Group TK_GUE_GroupWeapons TK_GUE_Patrol TK_GUE_ATTeam TK_GUE_AATeam TK_GUE_SniperTeam TK_GUE_Technicals TK_GUE_MotorizedGroup TK_GUE_MotorizedPatrol TK_GUE_MechanizedPatrol TK_GUE_MechanizedGroup TK_GUE_T55Section TK_GUE_T34Platoon // BIS_UN UN_Patrol UN_MotorizedPatrol UN_MechanizedPatrolBMP2 UN_MechanizedPatrolM113 // BIS_TK_CIV TK_CIV_Crowd1 TK_CIV_Crowd2
Rest of the ACM functions: Ambient Combat Manager - Functions