View Single Post
  #4  
Old 11-25-2012, 06:56 PM
theOden theOden is offline
Approved Member
 
Join Date: May 2011
Location: Sweden
Posts: 221
Default

This is how I do in my BoB5 campaign:

Quote:

if (GamePlay is GameServerDef)
{
GameServerDef gameServer = (GameServerDef)GamePlay;
ISectionFile missFile = gameServer.game.FirstMissionFile();
//int n = missFile.lines("FrontMarker");
//GamePlay.gpHUDLogCenter("FrontMarker " +n.ToString());
readMission(missFile);
};
if (GamePlay is GameSingleDef)
{
GameSingleDef gameServer = (GameSingleDef)GamePlay;
ISectionFile missFile = gameServer.game.FirstMissionFile();
//int n = missFile.lines("FrontMarker");
//GamePlay.gpHUDLogCenter("FrontMarker " + n.ToString());
readMission(missFile);
};


Edit: you might need this reference above public class Mission: [//$reference parts\core\gamePlay.dll]
Download and copypaste whatever if it helps: download
__________________

Last edited by theOden; 11-25-2012 at 07:01 PM.
Reply With Quote