OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: wcrvieira on 25 May 2005, 23:41:20

Title: Me and Description dont combine... need help!
Post by: wcrvieira on 25 May 2005, 23:41:20
Hi there people!
Well this is the first time I need help with description and I really am seeking for some help!

My problem is as follows:

I am making my new mission Operation Dreizack and I want my unit to have gear selection... I want him to start with G36A and to have to choose the most common weapons in the Portuguese Rangers (real units name).
I am not using any scripts, version 1.96 and no addons.

The description is this:

Quote
onLoadMission="Nice! Your insertion from the mountain was perfect. Now do your job!";

class Weapons
{
   // Add the weapons to the mission gear
   class UZI
   {
      Count = 1;
   };
   class Steyr
   {
      Count = 1;
   };
   class M4
   {
      Count = 1;
   };
   class M21
   {
      Count = 1;
   };
   class HK
   {
      Count = 1;
   };
   class G36A
   {
      Count = 1;
   };
   class FAL
   {
      Count = 1;
   };
};

class Magazines
{
   // Add the magazines to the mission gear
   class Flare
   {
      Count = 5;
   };
   class UZIMag
   {
      Count = 15;
   };
   class SteyrMag
   {
      Count = 15;
   };
   class M4
   {
      Count = 15;
   };
   class M21
   {
      Count = 15;
   };
   class HK
   {
      Count = 15;
   };
   class G36AMag
   {
      Count = 15;
   };
   class FALMag
   {
      Count = 15;
   };
};

And i put in the init field of the unit:
Quote
removeallweapons this; this addweapon "G36A"; this addmagazine "G36Amag";this addmagazine "G36Amag";this addmagazine "G36Amag"
btw: this init works fine but i dunno if I used this one... I guess I did! But it works fine neverthless.

Thanks in advance

Take care
BV
Title: Re:Me and Description dont combine... need help!
Post by: bedges on 25 May 2005, 23:46:43
i may be missing something, but what exactly is the problem? i don't think you said...  :-\
Title: Re:Me and Description dont combine... need help!
Post by: macguba on 26 May 2005, 00:03:04
I can see a small one.    Add a magazine before adding the weapon (in the init line) so that the weapon is loaded at the start of the mission.

But yes, what's going wrong?
Title: Re:Me and Description dont combine... need help!
Post by: wcrvieira on 26 May 2005, 00:12:00
Lol i forgot!

The problem is that I cant choose the gear in the briefing...
Its weird it is like my lasts mission description and this doesnt work...

I really cant choose weapons!

Cya
BV
Title: Re:Me and Description dont combine... need help!
Post by: Planck on 26 May 2005, 00:13:10
Unless it is called description.ext.txt instead of description.ext.


Planck
Title: Re:Me and Description dont combine... need help!
Post by: wcrvieira on 26 May 2005, 00:22:08
no it isnt...

See... the ONloadmission works fine but the weapons nah....

Cya
BV
Title: Re:Me and Description dont combine... need help!
Post by: macguba on 26 May 2005, 00:26:52
Delete the gear selection section from your description.ext.    Copy and paste in the gear selection from the description.ext in the Tutorial Mission.    You will now have gear selection, just the wrong gear.     Edit the weapon and magazine names to get what you want.   Copy and paste as required.
Title: Re:Me and Description dont combine... need help!
Post by: wcrvieira on 26 May 2005, 00:31:35
Thanks mate ill try that

Take care
BV
Title: Re:Me and Description dont combine... need help!
Post by: Planck on 26 May 2005, 00:47:41
Maybe I'm missing something here, but, why have a gear selection if you then removeallweapons once the mission starts and then give him a G36a?


Planck
Title: Re:Me and Description dont combine... need help!
Post by: wcrvieira on 26 May 2005, 01:11:05
Nvm mate...

I am a bit fuck** up I cant think straight...
Too many things on my head... oh how I am wishing a CZ75 here in my hands now...

Damn... really apreciated mates you helped a lot...
Thanks! :D

Cya
BV