Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   FMB, Mission & Campaign builder Discussions (http://forum.fulqrumpublishing.com/forumdisplay.php?f=203)
-   -   TGroupDestroyed Is this working for Trains??? (http://forum.fulqrumpublishing.com/showthread.php?t=30069)

hc_wolf 02-29-2012 12:19 AM

TGroupDestroyed Is this working for Trains???
 
Hi all,

I want to run a script that if the train is destroyed 10% then the trigger is activated.

The problem is in the scripting I don't think TGroupDestroyed is working for trains. Can anyone confirm this or provide a script showing it is working?

When I use a 109 and blow up the engine and some fuel tanks blow up on train it does not register that at least 10% of train is destroyed.... I do notice it says many carriages destroyed by crator. I have not tested with a bomb.

Here is my script that should work: Any help would be appreciated

Below is in the .MIS file
[Trigger]
TrainDestroyed TGroupDestroyed 0_Chief 10

[Action]
noting

Below is in the .CS file

Code:

          public override void OnTrigger(int missionNumber, string shortName, bool active)
    {
        base.OnTrigger(missionNumber, shortName, active);
               
                                if ("TrainDestroyed".Equals(shortName) && active)
        {
            GamePlay.gpHUDLogCenter("The Train has been destroyed!!!");
            GamePlay.gpGetTrigger(shortName).Enable = false;
            Timeout(10, () =>
                        {
            GamePlay.gpLogServer(null, "Train Destroyed", new object[] { });
            GamePlay.gpHUDLogCenter("Train Destroyed");
                        });
                }
        }



All times are GMT. The time now is 04:33 AM.

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