Jump to content
Sign in to follow this  

Recommended Posts

...any tips?
§7) Search before posting

If you have a question, please use the forum search function before posting to make sure that it hasn't been answered before. There is a big chance it has, not only does searching help to keep the forum free of multiple threads it will also help you to get an answer much quicker.

Also, vague questions get questions in return. Specific questions get answers.

Anyway, there are a number of approaches to this. The most basic would be to remove all inventory first, then add what you want.

removeAllWeapons

removeAllItems

removeBackpack

addBackpack

addWeapon

addMagazine

It gets a little more complicated if you are doing this for MP, or are using ACE.

Share this post


Link to post
Share on other sites
Adding weapons to a player. Like a custom load out.

Here is an example of one I made for a mission

removeAllWeapons this; this addMagazine "30Rnd_556x45_Stanag"; this addMagazine "30Rnd_556x45_Stanag"; this addMagazine "30Rnd_556x45_Stanag"; this addMagazine "30Rnd_556x45_Stanag"; this addMagazine "30Rnd_556x45_Stanag"; this addMagazine "30Rnd_556x45_Stanag"; this addMagazine "30Rnd_556x45_Stanag"; this addMagazine "30Rnd_556x45_Stanag"; this addMagazine "SMAW_HEAA"; this addMagazine "SMAW_HEAA"; this addMagazine "15Rnd_9x19_M9"; this addMagazine "15Rnd_9x19_M9"; this addMagazine "15Rnd_9x19_M9"; this addMagazine "15Rnd_9x19_M9"; this addMagazine "1Rnd_HE_M203"; this addMagazine "1Rnd_HE_M203"; this addMagazine "1Rnd_HE_M203"; this addMagazine "1Rnd_HE_M203"; this addWeapon "Binocular"; this addWeapon "NVGoggles"; this addWeapon "M4A1_RCO_GL"; this addWeapon "SMAW"; this addWeapon "M9"; 

Put the code in the init line of the unit you want to change. You have to add magazines first if you want the weapons loaded otherwise the weapons will start empty. Also things like hand grenades and satchel charges count as magazines.

http://community.bistudio.com/wiki/ArmA_2:_Weapons

weapon class names there

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  

×