OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: limmy3 on 15 Sep 2005, 19:15:16

Title: Description.ext gun setting
Post by: limmy3 on 15 Sep 2005, 19:15:16
Hi, I would like to give a soldier a collection of guns to choose from.
In the descriptin.ext I tried this:

//The seting of guns, fons and background used.
//Choose WEAPON from list

class Weapons
{
class UKF_SA80
{
count=12
};
class Weapons
{
class UKF_LMG
{
count=12
};
class Weapons
{
class UKF_LSW
{
count=12
};
class Weapons
{
class UKF_SA80AG36
{
count=12
};

but various changes and trying will not work.
Has someone got the answer?  ???
Title: Re:Description.ext gun setting
Post by: Terox on 15 Sep 2005, 20:41:12
you only define
"Class Weapons" once

eg

// WEAPONS
class Weapons
   {
   class WGL_M4a1
   {
   count = 5;
   };

   class WGL_M4a1gl
   {
   count = 3;
   };

   class WGL_M4a1sd
   {
   count = 10;
   };
   class WGL_M4a1reflex
   {
   count = 10;
   };
};



and then the same again but for the ammo
Title: Re:Description.ext gun setting
Post by: The-Architect on 15 Sep 2005, 20:57:33
Here's a sample of the UKF weapons from one of my missions. Look at it to see how it's done and If you want to use it, use it. You can add weapons to it once you figure out how it works.

class Weapons
{
class UKF_SA80
{ count = 10;};
class UKF_SA80AG36
{ count = 10;};
class UKF_LMG
{ count = 10;};
class UKF_GPMG
{ count = 10;};
class UKF_LAW80Launcher
{ count = 10;};
};

class Magazines
{
class JAM_W556_30mag
{ count = 100;};
class JAM_M433grenade
{ count = 100;};
class JAM_M433Vest
{ count = 15;};
class JAM_M576buck
{ count = 100;};
class JAM_W556M_200mag
{ count = 40;};
class JAM_W762M_100mag
{count = 40;};
class ukf_LAW80
{ count = 10;};
};
Title: Re:Description.ext gun setting
Post by: macguba on 15 Sep 2005, 20:58:41
Working example in the Tutorial Mission in the Editors Depot.
Title: Re:Description.ext gun setting
Post by: limmy3 on 15 Sep 2005, 21:25:07
Thank you!  ;D
Title: Re:Description.ext gun setting
Post by: Sui on 17 Sep 2005, 02:41:04
Welcome to the forums, Limmey3 :)

If you're question is answered, could you please click the (http://www.ofpec.com/yabbse/YaBBImages/solve.gif) button at the bottom of the thread.

Then our talented editor depot workers can add your question to our FAQ.
Thanks.
Title: Re:Description.ext gun setting
Post by: limmy3 on 18 Sep 2005, 18:33:00
Welcome to the forums, Limmey3 :)

If you're question is answered, could you please click the (http://www.ofpec.com/yabbse/YaBBImages/solve.gif) button at the bottom of the thread.

Then our talented editor depot workers can add your question to our FAQ.
Thanks.

Yes, I just wanted to see if it works, then solve it.