Jump to content
Sign in to follow this  
Mavis130

Adding a weapon AND ammo.

Recommended Posts

Hey, yes this is probably an obvious question, so sorry. Yet, I really wish to have a soldier start with gear he normally wouldn't have. I do know the individual commands, but I am just unable to put them together.

example- Bob addweapon "gun" Bob addmagazine "gunmag"

with that (gun replacing a correct command) I get the error "missing ;" I place a ; (semi colon) at different places in between the 2 commands yet I get the same error over and over again. I really need to know how to separate commands correctly. I would think to just hit 'enter' but that just takes the window down.

By the way, thanks in advance for the help, I really (will) appreciate it.

Share this post


Link to post
Share on other sites

bob addmagazine "gunmag"; bob addweapon "gun"; bob addmagazine "gunmag"

That should work if you put it in its init field. Its a good idea to add the magazine first but it isn't required. If you don't he'll have to reload the gun before he can fire it but if you do it will be loaded when the game starts.

Share this post


Link to post
Share on other sites

remember to empty the guys inventory before you start!

removeallweapons this;
this addmagazine "magazineclassname";  // repeat how many you want
this addweapon "gunclassname";

Share this post


Link to post
Share on other sites

You can simplify adding your magazines by doing this:

{this addmagazine "nameofyourmagazine"} foreach [1,2,3,4,5,6]

The 1-6 would be the number of magazines.

you need to put your magazines in first before the weapon otherwise you will have an unloaded weapon at start.

List of weapons and magzines can be found here.

Edited by cobra4v320

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  

×