Arma 3 - MP Missions Scripting Tutorial - Part 3 - Character Loadouts
Channel: Me-Time Gamer
Date: 2016-01-22

Arma 3 - MP Missions Scripting Tutorial - Part 3 - Character Loadouts

Base class names list from Bohemia: https://community.bistudio.com/wiki/Arma_3_Assets


Script template for loadout in description.ext:

class CfgRespawnInventory
{
 class EAST1 //This can be what you want but has to match in init.sqf
 {
  displayName = "Name Here"; // Name visible in the menu
  icon = "\A3\Ui_f\data\GUI\Cfg\Ranks\sergeant_gs.paa"; // Icon displayed next to the name

  // Loadout definition, uses same entries as CfgVehicles classes
  weapons[] = {
   "",
   "Binocular"
  };
  magazines[] = {
   "",
   "",
   "",
   "" // last item in section doesn't have a comma.
  };
  items[] = {
   "",
   ""
  };
  linkedItems[] = {
   "",
   "Hat goes in this list",
   "Also Glasses",
   "And Weapon Acc.",
   "ItemMap",
   "itemgps",
   "ItemCompass",
   "ItemWatch"
  };
  uniformClass = "uniform here";
  backpack = "Backpack Here";
 };
};

Script template for character loadouts inserted in initialization box in Editor:

removeallweapons this;
removeallassigneditems this;
removeuniform this;
removevest this;
removebackpack this;

this addvest "";

this addbackpack "";

this addheadgear "";

this addGoggles "";

(unitBackpack this) additemCargoGlogal ["FirstAidKit",1];
(unitBackpack this) addmagazineCargoGlobal ["SatchelCharge_Remote_Mag",1];

this addmagazine "";


this addweapon "";
this addPrimaryWeaponItem "";
this addPrimaryWeaponItem "";
this addPrimaryWeaponItem "";

this addmagazine "";

this addweapon "";

this addmagazine "smokeshell";
this addmagazine "smokeshell";
this addmagazine "smokeshell";
this addmagazine "smokeshell";
this addmagazine "handgrenade";
this addmagazine "handgrenade";
this addmagazine "handgrenade";
this addmagazine "handgrenade";

this additem "nvgoggles";
this additem "ItemCompass";
this additem "itemgps";
this additem "itemmap";
this additem "itemradio";
this additem "itemwatch";

this assignitem "nvgoggles";
this assignitem "itemcompass";
this assignitem "itemgps";
this assignitem "itemmap";
this assignitem "itemradio";
this assignitem "itemwatch";

this adduniform "";

------------------------------------------------------------------------------------------------------------
Hit that like button and Subscribe to the channel!

Follow Me-Time Gamer:

www.twitch.tv/metimegamer
www.twitter.com/metimegamer
www.metimegamer.com
www.facebook.com/metimegamer
www.reddit.com/r/metimegamer

Check out our affiliates:

www.metimegamer.com/affiliates