OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bigdave003 on 24 Feb 2005, 23:36:31

Title: weapon selection
Post by: bigdave003 on 24 Feb 2005, 23:36:31
hello, how do i make it possible to select weapons for a mission at the briefing screen?
Title: Re:weapon selection
Post by: RujiK on 24 Feb 2005, 23:50:13
Put this in the description.ext file, note that you will only be able to select the weapon once you have PBOed it and put it in the missions Folder

Code: [Select]
class Weapons
{
class Gunname { count = 1; };
class Othergunname { count = 1000; };
};

class Magazines
{
class magazinename { count = 6; };
class othermagazinename { count = anynumber you want; };
};
Title: Re:weapon selection
Post by: bigdave003 on 24 Feb 2005, 23:50:51
ta  :cheers:
Title: Re:weapon selection
Post by: bedges on 24 Feb 2005, 23:54:22
well, my first response would be to direct you to the appropriate tutorial, but i can't seem to find one easily.

the answer lies in the description.ext file. there's a very good example from which you can cut and paste in the unofficial command reference, which can be found here (http://www.ofpec.com/editors/resource_view.php?id=28).

cheers :)

EDIT - beaten to it once more :P
Title: Re:weapon selection
Post by: macguba on 25 Feb 2005, 00:52:49
There are two tutes in the Ed Depot on description.ext, though they cover much more than just Gear selection.     The Tutorial Mission has a description.ext especially designed for you to use as a template.    It also has other files you can use as templates.