Edited
Thanks to @Marcost and @ATAG_Oskar
Here is the code I'm using:
p.s.Here the "0 : Static21" is the object code name from this particular mission.Code:... string findMe = "0:Static21"; foreach (GroundStationary gs in GamePlay.gpGroundStationarys()) { Console.WriteLine("this groundstationary is " + gs.Name); // let's see what is passing through the loop (optical) if (gs.Name.Equals(findMe)) { Console.WriteLine("Found target object: " + gs.Name); // let's see if windsocks are found (optical) gs.Destroy(); } ...
( Bugs? as far as I know:
When deal with windsock, it will delete all objects in the mis
Fire, smoke, lights(etc) can not be found by this)
***************
Previously
I have read these:
https://theairtacticalassaultgroup.c...ad.php?t=32595
https://theairtacticalassaultgroup.c...ad.php?t=24127
https://forums.twcpilots.com/showthread.php?tid=165
But still can't figure out how it works for a specific static object.
Bookmarks