OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
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
class Weapons
{
class Gunname { count = 1; };
class Othergunname { count = 1000; };
};
class Magazines
{
class magazinename { count = 6; };
class othermagazinename { count = anynumber you want; };
};
-
ta :cheers:
-
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
-
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.