Quote:
Originally Posted by Ataros
Actually ZaltysZ corrected oreva's code to be more friendly to single-engined AC. Sorry, did not notice earlier.
Code:
int iNumOfEngines = (aircraft.Group() as AiAirGroup).aircraftEnginesNum();
for (int i = 0; i < iNumOfEngines; i++)
{
aircraft.hitNamed((part.NamedDamageTypes)Enum.Parse(typeof(part.NamedDamageTypes), "Eng" + i.ToString() + "TotalFailure"));
}
upd.
Sorry for multiple posts. Do you plan to develop the mission further, say including a movable frontline and having ground forces to actually push an enemy to the channel waters? Dunkerque tragedy is a remarkable event in history and deserves further development imho.
I am slowly working (mostly studying C# actually) )) with this script to have movable frontlines in Calais area. At this point there is no generator to generate waypoints for ground groups and all submissions should be created manually. In future we could combine our submissions into one mission covering half of existing France map if we use the same script and the same submission naming convention.
|
Hi Ataros. Yes, I am going to improve the mission. Moving frontlines is unlikely. I can barely get the ships to do what I wan them to.
It seems like as soon as I fix one problem, another comes up. In the future though, for sure we'll see.