OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Cpl. Vagabond on 05 Apr 2003, 20:13:18
-
i've been trying to add weapons to the briefing and this is the code i'm using, the weapons all there but the magazines aren't
class weapons
{
class BAS_M4ACOG {count = 2;};
class BAS_M4MKReflex {count = 8;};
class cc_glock18 {count = 4;};
class CHRSA80 {count = 2;};
class cc_spas12 {count = 2;};
class BAS_M249 {count = 2;};
class BAS_M249spw {count = 2;};
class OFrP_FAMASF1 {count = 1;};
class SJBM4A1SDspecialOps {count = 1;};
class SJBM4A1SDMarksmanCamo {count = 1;};
class Steyr {count = 1:};
class LAWLauncher {count = 1:};
class G36A {count = 1;};
class KEGak107 {count = 1;};
class ADF_SR98 {count = 1;};
class ADF_SR98S {count = 1;};
class ADF_AW50F {count = 1:}:
};
class magazines
{
class BAS_M4Mag {count = 20;};
class handgrenade {count = 40;};
class cc_glock18mag {count = 20;};
class CHRSA80Mag {count = 20;};
class cc_spas12mag {count = 50;};
class BAS_M249mag {count = 10:};
class OFrP_FAMASmag {count = 10;};
class SJBM4A1SDmag {count = 20;};
class Steyrmag {count = 4;};
class SmokeShell {count = 5;};
class SmokeShellGreen {count = 5;};
class SmokeShellRed {count = 5;};
class LAWLauncher {count = 2:};
class G36aMag {count = 10;};
class KEGak107Mag {count = 10;};
class ADF_SR98mag {count = 10;};
class ADF_SR98smag {count = 10;};
class ADF_AW50Fmag {count = 10;};
};
-
make sure you have the names for the magazines correct ;)
-
Hi
I've had the exact same problem but no-one could help. I managed to find a program called Chris's OFP Script editor which allows you to use a graphical front end to design your description.ext file so you can add new weapons, sounds etc.
Its a great little program, you can get it from the Editing Depot in the Mission Editing section.
http://www.chenderman.com/CHOFPSE.htm
http://www.ofpec.com/includes/download2.php?id=469
;D
-
thanks