Arma 3 How to modify player loadout on Respawn

Arma 3 How to modify player loadout on Respawn 1 - steamsplay.com
Arma 3 How to modify player loadout on Respawn 1 - steamsplay.com
A quick Guide on how to modify a player’s loadout on respawn, since I find conflicting info all over, some leading to issues later on in your scenario.

This will enable you to Remove gear and Add Gear.

 
 

Set up your scenario.

 
Firstly, set up your scenario and players in the eden editor. Save the mission. No special setup in Player init is required. 
 
 

Create Respawn Script

 
Here’s the important bit. 
 
Navigate to My Documents\ARMA 3\. 
 
in there are 2 folders: 
 

  • missions 
  • mpmissions

 
Depending on what you saved your mission as (mission/mpmission), your mission files will be stored under one of these directories , in a folder named what you named your mission. 
 
In your mission folder, create a new file called OnPlayerRespawn.sqf 
 
Paste the contents below in the file and save. 
 
waitUntil {!isNull player}; 
unit = player; 
removeAllWeapons unit; 
removeAllItems unit; 
removeAllAssignedItems unit; 
removeUniform unit; 
removeVest unit; 
removeBackpack unit; 
removeHeadgear unit; 
removeGoggles unit; 
sleep 1; 
unit addUniform “UniformName”; 
unit addVest “vestname”; 
unit addItemToVest “itemname”; 
unit addBackpack “backpackname”; 
unit addItemToBackpack “itemname”; 
unit addHeadgear “headgearname”; 
unit addGoggles “gogglesname”; 
unit addWeapon “weaponname”; 
unit addPrimaryWeaponItem “weaponname”; 
unit addHandgunItem “handgunitemname”; 
unit linkItem “itemname”; 
 
if(true) exitWith{}; 
 
For Example: 
 
waitUntil {!isNull player}; 
unit = player; 
removeAllWeapons unit; 
removeAllItems unit; 
removeAllAssignedItems unit; 
removeVest unit; 
removeBackpack unit; 
removeHeadgear unit; 
removeGoggles unit; 
sleep 1; 
unit addItemToUniform “16Rnd_9x21_Mag”; 
unit addItemToUniform “16Rnd_9x21_Mag”; 
unit addItemToUniform “FirstAidKit”; 
unit addWeapon “hgun_Rook40_F”; 
 
if(true) exitWith{}; 
 
 

Profit!

 
That’s it! Easy Peasy. 
 
Now go back to Eden Editor, save map & export it to multiplayer. 
 
Time to Play. 
 

Written by MonkInsane

Here we come to an end for Arma 3 How to modify player loadout on Respawn hope you enjoy it. If you think we forget something to include or we should make an update to the post let us know via comment, and we will fix it asap! Thanks and have a great day!


Be the first to comment

Leave a Reply

Your email address will not be published.


*