![]() |
@hc_wolf
BTW this should work for user placed stationary, not for stationaries that are already available on the map (Radars by Dover for example). This has worked for me without problem: Code:
public override void OnStationaryKilled(GroundStationary _stationary, AiDamageInitiator initiator, int eventArgInt) |
Thanks Kodiak, will give this cut down version a try. If it still does not remove the damaged material I will post the mission and coding for Podvoxx on the supplied forum link.
Is podvoxx on the Dev team? I am been in direct comms with one of the others. I have a few sample missions I can send them that exploit or show the code where particular odd events are occurring. Including a Mesh error that repeats in server console with the Balloons. Oh and just to be clear about the Radars destroyed parts not removing from Map. These are radars that are static objects imported in by a mission loading into another mission. I am not talking about destroying the pre-loaded radars on the map like Dover. These are radars placed on map from FMB and loaded into main mission from sub mission. I wil post a mission on here http://www.sukhoi.ru/forum/showthrea...=68629&page=25 Now I know where the programmers are chatting on Sukhoi I will start posting my mission bug examples there for us all to discuss. |
naryv is a member of the dev team in that thread.
|
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 |
I use this to remove statics:
Code:
using System; I store the GroundStationary with the missionNumber in a Dictionary. If a new (sub)mission is loaded i check in OnMissionLoaded if there are new Stationaries created if so i store them in the dictionary with their missionNumber. If the submission triggers (in this example) the "DeleteTrigger" i remove all statics with this missionNumber. |
Thanks Kodiak. A bit of a fiddle around but I have it working perfect now in a bigger mission. I had to duplicate a trigger in Main mission and sub mission to get the result I want otherwise it destroyed everything in the main mission.
Thanks. |
All times are GMT. The time now is 02:00 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.