Jump to content
Sign in to follow this  
blackt12

Choose weapon from list

Recommended Posts

Is a script emplanted in the server/level or can you do it in the editor.

AGAIN: I can't/don't know how to script.

Share this post


Link to post
Share on other sites

If you're meaning the weapons selection at the start of a mission, it's done by setting the available weapons and ammos in the missions description.ext file.

example:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class Weapons

{

class M16A2

{

count = 4;

};

class M16A4

{

count = 4;

};

class M16A4_GL

{

count = 4;

};

class M16A4_ACG

{

count = 4;

};

class M16A4_ACG_GL

{

count = 4;

};

class M4AIM

{

count = 4;

};

class M136

{

count = 4;

};

};

class Magazines

{

class 30Rnd_556x45_Stanag

{

count = 60;

};

class HandGrenadeTimed

{

count = 60;

};

class 1Rnd_HE_M203

{

count = 60;

};

class M136

{

count = 60;

};

class 200Rnd_556x45_M249

{

count = 60;

};

};

You can find all the names of the weapons and magazines in the biki here:

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

Share this post


Link to post
Share on other sites

ColSanders, where can this file be found?

By the way, your name and avatar is amusing... notworthy.gif

Share this post


Link to post
Share on other sites
ColSanders, where can this file be found?

By the way, your name and avatar is amusing... notworthy.gif

C:\Documents and Settings\YourWinsowsUserName\My Documents\ArmA\missions\YourMissionFolder

By default there is no description.ext, so just create one with notepad.

EDIT: Of course, before you ask why its not working, make sure its description.ext and not description.ext.txt wink_o.gif

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  

×