I'm doing this right now.
First way in the description ext file.
class CfgRespawnInventory
{
class WEST1
{
displayName = "Officer"; // Name visible in the menu
role = "Officer";
// Loadout definition, uses same entries as CfgVehicles classes
weapons[] = {
"LIB_MP40",
"LIB_M1908",
"LIB_Binocular_GER"
};
magazines[] = {
"LIB_32Rnd_9x19",
"LIB_32Rnd_9x19",
"LIB_32Rnd_9x19",
"LIB_32Rnd_9x19",
"LIB_32Rnd_9x19",
"LIB_32Rnd_9x19",
"LIB_32Rnd_9x19",
"LIB_32Rnd_9x19",
"LIB_32Rnd_9x19",
"LIB_32Rnd_9x19"
};
items[] = {
"FirstAidKit",
"FirstAidKit"
};
linkedItems[] = {
"V_LIB_GER_FieldOfficer",
"H_LIB_GER_OfficerCap",
"ItemMap",
"ItemCompass",
"ItemWatch",
"ItemRadio"
};
uniformClass = "U_LIB_GER_Officer_camo";
vest = "V_LIB_GER_FieldOfficer";
backpack = "B_LIB_GER_A_frame_zeltbahn";
};
Second way.
class WEST2
{
displayName = "Medic"; // Name visible in the menu
role = "medic";
//comment "Remove existing items";
removeAllWeapons _unit;
removeAllItems this;
removeAllAssignedItems this;
removeUniform this;
removeVest this;
removeBackpack this;
removeHeadgear this;
removeGoggles this;
//comment "Add containers";
this forceAddUniform "U_LIB_GER_Soldier_camo";
this addItemToUniform "FirstAidKit";
for "_i" from 1 to 10 do {this addItemToUniform "LIB_5Rnd_792x57";};
this addVest "V_LIB_GER_VestKar98";
for "_i" from 1 to 9 do {this addItemToVest "FirstAidKit";};
this addItemToVest "LIB_5Rnd_792x57";
this addBackpack "B_LIB_GER_Rucksack_Vide";
this addItemToBackpack "Medikit";
for "_i" from 1 to 3 do {this addItemToBackpack "FirstAidKit";};
this addHeadgear "H_LIB_GER_HelmetCamo";
//comment "Add weapons";
this addWeapon "LIB_K98";
//comment "Add items";
this linkItem "ItemMap";
this linkItem "ItemCompass";
this linkItem "ItemWatch";
};
The game has problems with the second way if its in the same file as the first way.