Jump to content
Sign in to follow this  
tacticaldrunk

Loadout script help

Recommended Posts

Looking for a script that i can add to an ammo box or crate that will allow players that join my server to select from a few pre determined loadouts and it auto apply the loadout to them once selected.

so basically player connects at spawn walks up to a box selects the loadout they want and it gives the items to them.

have searched around and cant seem to find anything.

Share this post


Link to post
Share on other sites

Just use addAction for each loadout that executes the certain loadout for that action.

Share this post


Link to post
Share on other sites

You can use the BIS respawn template and define the loadouts in the description.ext file. The template you are looking for is "MenuInventory". For players to spawn in with the loadouts you would need to set the 'respawnOnStart' parameter to 1.

Here is the link for the documentation: https://community.bistudio.com/wiki/Arma_3_Respawn

Hope that this is useful

Kind regards,

Bull

Share this post


Link to post
Share on other sites

Example:

description.ext (only the necessary parts)

respawnOnStart = 1;
respawnTemplatesWest[] = {"MenuInventory","Counter","Tickets","EndMission"}; // side west

class CfgRespawnInventory {
class Rifleman {
	displayName = "Rifleman";

	weapons[] = {
		Binocular,
		arifle_MX_F,
		hgun_P07_F
	};
	magazines[] = {
		30Rnd_65x39_caseless_mag,
		30Rnd_65x39_caseless_mag,
		30Rnd_65x39_caseless_mag,
		30Rnd_65x39_caseless_mag,
		30Rnd_65x39_caseless_mag,
		30Rnd_65x39_caseless_mag,
		30Rnd_65x39_caseless_mag,
		16Rnd_9x21_Mag,
		16Rnd_9x21_Mag,
		16Rnd_9x21_Mag
		};
	items[] = {
		HandGrenade,
		};
	linkedItems[] = {
		V_Chestrig_rgr,
		H_HelmetB,
		optic_Hamr,
		NVGoggles,
		G_Tactical_Clear,
		ItemGPS,
		ItemMap,
		ItemCompass,
		ItemWatch,
		ItemRadio
	};
	uniformClass = U_B_CombatUniform_mcam;
};
};

init.sqf

[player,"Rifleman"] call BIS_fnc_addRespawnInventory;

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
Sign in to follow this  

×