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
  #14  
Old 08-06-2012, 12:48 AM
hc_wolf hc_wolf is offline
Approved Member
 
Join Date: Jul 2010
Posts: 439
Default

Hi Kodiak,

Still not getting it to work.

I tried a couple of different methods, but The static Radar object when bombed keeps its broken bits laying around. So radar after Radar build on top od broken parts.

Below the idea is that the static object is placed in mission and then bombed.

It is destroyed and after a few seconds the destroyed parts should dissapear. Then 10 seconds later a new mission is called to spawn in a new Radar.

How can the below code and extra code be used to remove broken parts of radar once object is destroyed?

Code:
        if ("DunkirkRadar".Equals(shortName) && active)			//Trigger 1
        {

            GamePlay.gpHUDLogCenter("Dunkirk Radar has been Damaged - Repairs to begin immediately (AT24)");
            GamePlay.gpLogServer(null, "Dunkirk Radar has been Damaged - Repairs to begin immediately (AT24)", new object[] { });
            Timeout(10, () =>
            {
                //  OnStationaryKilled(_stationary.Type.Equals("Radar");

                /*    destroyGroundActor(AiGroundActorType.Radar, 1);
                    destroyGroundActor(AiGroundActorType.RadioBeacon, 1);
                    destroyGroundActor(AiGroundActorType.Unknown, 1);
                    destroyGroundActor(AiGroundActorType.RadioBeamProjector, 1);*/
                GamePlay.gpHUDLogCenter("Dunkirk Radar has been repaired and is fully operational");
                GamePlay.gpLogServer(null, "Dunkirk Radar has been repaired and is fully operational", new object[] { });
                GamePlay.gpPostMissionLoad("missions/Multi/Dogfight/Atag/Channel_Command/Supply/5DunkirkRadar.mis"); // Submission of this type the path correctly				
                GamePlay.gpGetTrigger(shortName).Enable = false;
            });
        }
__________________
__________________
Win7, 64bit Ultra
Asus P8P67Pro MB
Intel i7-2600K
Coursair 16GB (4x 4GB), DDR3-1600MHz
Gainward Nvidia 580GTX 3GB DDR5
850-Watt Modular Power Supply
WIN7 and COD on Gskill SSD 240GB
40" Panasonic LCD
TrackIR5 +
Thrustmaster Warthog stick, throttle & pedals
Reply With Quote
 


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 08:55 AM.


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