missions directory: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(ingame system of directories for missions)
 
m (Redirected page to CfgMissions)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
As you may have already noticed, single player missions may be managed inside directories for game purposes. All the new single player missions are listed under the British Armed Forces for example. If you wish to make your own missions and create similar structure, simply define a new class in cfgMissions.mission without a "directory" parameter. Then place all desired missions as subclasses inside this class. You may even add an displayName and overview for the directory as for default missions. To make it a bit easier, there is a part of our config as an example:
#REDIRECT [[CfgMissions]]
 
<CODE>
class CfgMissions
{
class Missions // default class to make missions displayable
{
class BAF_Missions // directory class for BAF missions
{
DisplayName = "British Armed Forces"; // name of directory
overview = "\ca\missions_baf\overview.html"; // the same as for campaign
// Garmarud skirmish - an example of mission
class SPB_MorningDew 
{
directory = "ca\missions_baf\scenarios\SP_MorningDew.Takistan"; // note there is no directory inside BAF_Missions
}; // next missions to be added here
};
};
};
</CODE>

Latest revision as of 10:46, 4 November 2011

Redirect to: