Jump to content
kibaBG

Custom Loadout to AI units from mission config

Recommended Posts

Hi, I apply a custom loadout to spawned enemy AI units with 
 

_unit setUnitLoadout (missionConfigFile >> "Loadouts" >> "usaf" >> "infantry" >> "antitank");

Loadouts are defined in description.ext 

class Loadouts
{
class usaf 
	{
	class infantry 
		{
		class antitank
		{
uniformClass = "rhs_uniform_acu_ucp";
backpack = "B_Kitbag_rgr";
weapons[] = {"rhsusf_weap_MP7A2_aor1","rhs_weap_maaws","Binocular","Throw","Put"};
magazines[] = {"rhsusf_mag_40Rnd_46x30_AP","rhs_mag_maaws_HEAT","ACE_painkillers","ACE_painkillers","ACE_painkillers","rhs_mag_m18_red","rhs_mag_m18_purple","rhs_mag_m18_yellow","rhs_mag_m67","Chemlight_red","Chemlight_red","rhsusf_mag_40Rnd_46x30_AP","rhsusf_mag_40Rnd_46x30_AP","rhsusf_mag_40Rnd_46x30_AP","rhsusf_mag_40Rnd_46x30_AP","rhsusf_mag_40Rnd_46x30_AP","rhsusf_mag_40Rnd_46x30_AP","rhsusf_mag_40Rnd_46x30_AP","rhsusf_mag_40Rnd_46x30_AP","rhsusf_mag_40Rnd_46x30_AP","rhsusf_mag_40Rnd_46x30_AP","rhsusf_mag_40Rnd_46x30_AP","rhs_mag_maaws_HEAT","rhs_mag_maaws_HEAT","rhs_mag_maaws_HEAT"};
items[] = {"ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_elasticBandage","ACE_elasticBandage","ACE_elasticBandage","ACE_elasticBandage","ACE_elasticBandage","ACE_elasticBandage","ACE_packingBandage","ACE_packingBandage","ACE_packingBandage","ACE_packingBandage","ACE_packingBandage","ACE_packingBandage","ACE_morphine","ACE_morphine","ACE_morphine","ACE_morphine","ACE_morphine","ACE_morphine","ACE_salineIV_500","ACE_splint","ACE_splint","ACE_splint","ACE_tourniquet","ACE_epinephrine","ACE_epinephrine","ACE_epinephrine"};
linkedItems[] = {"rhsusf_iotv_ucp_Squadleader","rhsusf_ach_helmet_headset_ucp","rhs_googles_yellow","ItemMap","ItemCompass","ItemWatch","ItemRadio","rhsusf_ANPVS_14"};
		};
		};
	};
};

 The unit spawns with everything but weapon attachments. I have no idea where to put the attachments classnames ? I will be glad of any help ...

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

×