ArmA 3 Mission Creating - Player Gear Template

From Wiki

Jump to: navigation, search

Contents

Player Marker Template

This template removes all player weapons, magazines, items and clothing and allows you to specify a new loadout.

Download removed

Enabling the script

To use this script in a mission, copy the following code lines into your playable unit init line.

loadout = [this] execVM "scripts\BEARB_gear.sqf";

Then copy the scripts folder into your mission.

Define loadout to be used by playable unit

In the script BEARB_Gear.sqf adjust the named unit for each relevant loadout in the section:

	case (_man in [b1,b2]) : {"sl"};
	case (_man in []) : {"rfn"};
	case (_man in []) : {"at"};
	case (_man in []) : {"eng"};
	case (_man in []) : {"mg"};
	case (_man in []) : {"medic"};
	case (_man in []) : {"sniper"};
	case (_man in []) : {"pilot"};

Changing unit loadouts

In the script BEARB_Gear.sqf adjust the defined loadout for example for squad leaders you would adjust the section:

/* Defines the loadout for the "sl" Squad Leader */
   case "sl":
	{
		_man addbackpack "B_FieldPack_Base";
		clearWeaponCargoGlobal (unitBackpack _man);
		clearMagazineCargoGlobal (unitBackpack _man);
		clearAllItemsFromBackpack (unitBackpack _man);
		(unitBackpack _man) addmagazinecargoGlobal ["HandGrenade",8];
		(unitBackpack _man) addmagazinecargoGlobal ["SmokeShell",8];
		(unitBackpack _man) addmagazinecargoGlobal ["30Rnd_65x39_caseless_mag",8];
		(unitBackpack _man) addItemCargoGlobal ["FirstAidKit",2];
		_man addVest "V_TacVest_brn";
		_man addHeadGear "H_HelmetB_paint";
		_man addGoggles "G_Shades_Black";
		_man addUniform "U_B_CombatUniform_mcam_vest";
		_man addItem "NVGoggles";
		_man assignItem "NVGoggles";
		_man addweapon "Binocular";
		_man addweapon "ItemWatch";
		_man addweapon "ItemCompass";
		_man addweapon "ItemGPS";
		_man addweapon "ItemRadio";
		_man additem "FirstAidKit";
		{_man addmagazine "HandGrenade";} count [1,2];
		{_man addmagazine "SmokeShell";} count [1,2];
		{_man addMagazine "16Rnd_9x21_Mag";} count [1,2];
		_man addweapon "hgun_P07_F";
		_man addhandgunitem "muzzle_snds_L";
		{_man addmagazine "30Rnd_65x39_caseless_mag";} count [1,2,3,4,5,6,7,8];
		_man addweapon "arifle_MX_F";
		_man addPrimaryWeaponItem "muzzle_snds_H";
		_man addPrimaryWeaponItem "optic_aco";
		_man addPrimaryWeaponItem "acc_pointer_IR";
		_man selectweapon "arifle_MX_F";
	};
Changelog:
v1
  • Initial release
TODO List:
  • Define each loadout correctly
Personal tools