OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ONoSixIsDown on 05 Dec 2005, 20:22:31
-
hey everyone.. i'm back with another problem.
i just created a "description.EXT" file so the player has a number of weapons to choose from at the start of the mission.
the weapons appear but the ammo does not. also, i get an error message saying
" No entry 'config.bin/cfg Weapons.Magazines'.
the weapons are there to picked from but no ammo. :-\
here's what i have in my description.ext file
class Weapons
{
class G36a
{
count = 1;
};
class XMS
{
count = 1;
};
class M16
{
count = 1;
};
class M16GrenadeLauncher
{
count = 1;
};
class LAWLauncher
{
count = 1;
};
class CarlGustavLauncher
{
count = 1;
};
};
// and the ammo
class Magazines
{
class G36aMag
{
count = 9;
};
class M16
{
count = 9;
};
class M16GrenadeLauncher
{
count = 9;
};
class HandGrenade
{
count = 9;
};
class LAWLauncher
{
count = 6;
};
class CarlGustavLauncher
{
count = 2;
};
class Flare
{
count = 4;
};
class FlareRed
{
count = 4;
};
class FlareGreen
{
count = 4;
};
class FlareYellow
{
count = 4;
};
class SmokeShell
{
count = 4;
};
};
did i go wrong somewhere?
-
well this is the magazine class from one of my missions
class Magazines
{
class SmokeShellRed
{
Count = 2;
};
class SmokeShellGreen
{
Count = 2;
};
class SmokeShell
{
Count = 2;
};
class UZIMag
{
Count = 6;
};
class SteyrMag
{
Count = 12;
};
class M60
{
Count = 8;
};
class M4
{
Count = 10;
};
class M21
{
Count = 10;
};
class GrenadeLauncher
{
Count = 15;
};
class M16
{
Count = 25;
};
class LAWLauncher
{
Count = 10;
};
class HK
{
Count = 13;
};
class GlockMag
{
Count = 20;
};
class CarlGustavLauncher
{
Count = 3;
};
class BerettaMag
{
Count = 30;
};
class HandGrenade
{
Count = 20;
};
class FlareGreen
{
Count = 2;
};
class Flare
{
Count = 2;
};
class AALauncher
{
Count = 5;
};
};
you could try editing that to your needs
i cant see anything wrong also this should go in the section below this one about cutscenes and description.ext
-
i cant see whats wrong, might be one little typo in there, this is a little tighter
class Binocular
{count = 1;};
};
// This class indicates what weapon magazines to make available to the player in the mission briefing.
class Magazines
{
class JAM_W556_30HDmag
{count = 50;};
class BAS_M4SMag
{count = 50;};
class JAM_W556_30mag
{count = 50;};
class LAWLauncher
{count = 50;};
-
ok, it works, thanks guys