Quote:
Originally Posted by salmo
Keep radius small to avoid accidently deleting other ground stationaries
|
Thanks Salmo I shall remember for other times.
But for this topic I don't to delete in a radius area, I want to delete every object I load in a sub mission.
Example, I load a bomber mission, the targets spawn at same time as bomnbers. Then 1 hour later if the bombers did not make it or if they did, all Ground objects that were spawned in on that submission are removed.
so maybe I use the below and place it in the sub mission .cs file
Code:
public static void RemoveStaticAt(string country)
{
foreach (GroundStationary stationary in GamePlay.gpGroundStationarys(country))
{
If country = de;
{
stationary.Destroy();
}
}
}