Hi,
I'm trying to understand sub-mission scripts but I can't get past the first hurdle.
I know my paths etc. are correct because if I put a syntax error in the following sub-mission script then I get a corresponding error log message. Otherwise, there are no log errors.
When I start the mission, I see the on-screen message from the first script but not from the sub-script.
Here is the main script:
Code:
public class Mission : AMission
{
public override void OnBattleStarted()
{
GamePlay.gpHUDLogCenter("Main Mission Loaded");
MissionNumberListener = -1;
Timeout(15, () =>{
GamePlay.gpPostMissionLoad("missions/Single/Dover_Attack MC/Submission/mission1.mis");
});
}
}
Here is the sub-mission script:
Code:
public class Mission : AMission
{
public override void OnBattleStarted()
{
GamePlay.gpHUDLogCenter("Mission1.mis loaded!");
}
}
What am I doing wrong? Are there any special 'using' requirements at the top of the script? Maybe settings elsewhere, in conf.ini for example?
Thanks in advance,
M
Bookmarks