![]() |
|
#14
|
|||
|
|||
|
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 |
|
|