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 07-23-2012, 11:25 PM
hc_wolf hc_wolf is offline
Approved Member
 
Join Date: Jul 2010
Posts: 439
Default Place and then Remove Static Objects after destruction.

Hello,

Two questions and I think I know the answer, just want to re-check.

1) If you destroy an object on the English map (Permanent Radar) or a Static Radar object placed in the .mis file, Do they come back after x minutes or stay destroyed?

2) If I place a Static Radar and then Bomb it, Bits scatter around the bomb site and it stays destroyed.. ..Is there a script that will remove the debris (Destroy AiGroundActorType.Radar)

I want to Destroy the Radar and then have it Re-spawn a little later. I have the script all working except for clearing the Destroyed Radar. So at the moment the new Radar spawns on the destroyed one.

from .mis file
Static4 Stationary.Radar.EnglishRadar1 gb 70506.68 171685.75 93.00

The below does not seem to work if I put this in mission script

Code:
    /*------------------Remove AIGround method---------------*/
    private void destroyGroundActor(AiGroundActorType type, int army)
    {
        if (GamePlay.gpGroundGroups(army) != null)
        {
            foreach (AiGroundGroup gg in GamePlay.gpGroundGroups(army))
            {
                if (gg != null && gg.GetItems().GetLength(0) > 0)
                {
                    foreach (AiActor ggActor in gg.GetItems())
                    {
                        if (ggActor != null)
                            if ((ggActor as AiGroundActor) != null && (ggActor as AiGroundActor).Type() == type)
                                (ggActor as AiGroundActor).Destroy();
                    }
                }
            }
        }
    }
__________________
__________________
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 10:54 PM.


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