Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-31-2012, 10:48 AM
moggel moggel is offline
Approved Member
 
Join Date: Mar 2011
Posts: 70
Default Triggers not working with scripts

Hi everyone, long time and so on ...

I've been away for some time doing other things but I'm currently in testing mode for a new mod I call "Fighter Command". But as I created missions that rely on (timed) triggers they simply doesn't work. At first I suspected my code but it seems triggers simply doesn't wotk at all for missions that supports a script (.cs) file.

I created this litte file:

Code:
using System;
using maddox.GP;
using maddox.game;
using maddox.game.world;
using part;

public class Mission : AMission
{
    public override void OnTrigger(int missionNumber, string shortName, bool active)
    {
        base.OnTrigger(missionNumber, shortName, active);
        GamePlay.gpLogServer(null, "Trigger '" + shortName + "' = " + active, null);
    }
}
The lines above does confirm that the triggers are honored by the sim but nothing gets spawned! I then tried to remove the .cs file and then it works fine.

Has anyone else seen this?
__________________
Core i7 3930K @ 4.8GHz; 16Gb DDR3 (Vengeance); nVidia GTX580; OS disk: 150Gb 10000rpm; SIM disk: 300Gb 10000rpm; Windows 7 x64 Ultimate
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.