View Single Post
  #1  
Old 01-27-2012, 08:06 PM
wildwillie wildwillie is offline
Approved Member
 
Join Date: Aug 2010
Posts: 111
Default Are Destroyed triggers working ?

I'm testing out triggers and was wondering if the TGroupDestroyed or TGroundDestroyed are working.

The triggers are defined in the .mis file as:

Code:
[Trigger]
  D3_red_dest TGroundDestroyed 85 272438 200346 1250
  Red_Fuel_Depot TGroundDestroyed 75 267827 197993 550
  Blue_Fuel_Depot TGroundDestroyed 75 272015 208932 350
  D3_blu_dest TGroundDestroyed 85 271991 205306 1100
  De_Fuel_Column1 TGroupDestroyed 20_Chief 80
  De_Bofors_Column TGroupDestroyed 22_Chief 80
  GB_AAA_Column2 TGroupDestroyed 25_Chief 80
  GB_AAA_Column1 TGroupDestroyed 26_Chief 80
In my script file I added the following:

Code:
    public override void OnTrigger(int missionNumber, string shortName, bool active)
    {
        base.OnTrigger(missionNumber, shortName, active);
        System.Console.WriteLine("Trigger (" + shortName + ") Mission #(" + missionNumber.ToString() + ") active(" + active.ToString() + ")");
    }
Expecting that when the a trigger was executed it would write a line out in the console. So far it is not doing it, any Ideas ?

WildWillie
Reply With Quote