Jump to content
Sign in to follow this  
t1337Dude

How do I give a player a weapon on start?

Recommended Posts

I tried adding "unit addmagazine Colt1911; unit addweapon Colt1911" but nothing was added. What's the proper way of doing this? I'm trying to give my starting player a pistol and a magazine.

Share this post


Link to post
Share on other sites

Firstly, the quotes are in the wrong place and should be as follows

unit addMagazine "magazinename"; unit addWeapon "weaponname"

The second is your magazine and weapon names are wrong. Should be;

unit addMagazine "7Rnd_45ACP_1911"; unit addWeapon "Colt1911"

A list of weapons and magazine classnames can be found at;

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

Share this post


Link to post
Share on other sites

How would you do this if your character has other commands in the intialisation?

For example what I already have is:

SQD1 moveincargo chopper1

and I would like to give the character an M136 + 1X M136 rocket.

Cheers

Share this post


Link to post
Share on other sites

 sqd1 moveincargo chopper1; sqd1 addWeapon "M136"; sqd1 addMagazine "M136"; 

That should do it. Note you can replace "sqd1" with "this" (without quotes) if you are using the units init line.

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  

×