Event Coding advice (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios



Message


vettim89 -> Event Coding advice (9/8/2016 4:10:59 PM)

SO in my Baltic On Fire scenario I had set up an event where if the WarPac lost a high number of amphibious ships, the AI would call off the invasion and pull back the AMPH TFs vice just sending them to their doom. I did this by using a Key value counting the number of LST/LSM sunk and when it reached the threshold, the three AMPH TF were assigned to a new mission ordering them back to safer waters. I was testing this and ran into a problem. The event was triggered when the sole surviving Polish LSM was sunk which also happened to be the last ship in the PRP AMPH TF. The event script then failed because it could not find the PRP AMPH TF because the group dissolved when the last ship was sunk.

Any ideas on how to get around this?




mikmykWS -> RE: Event Coding advice (9/8/2016 5:35:05 PM)

This is a perfect example of a question for the Command question and answer site. Post the code and the lua gurus will look.
http://qa.commandmodernairnavaloperations.com


Mike




vettim89 -> RE: Event Coding advice (9/9/2016 10:54:39 PM)

Thanks. Problem solved




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
4.03125