Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: headdie on November 23, 2010, 05:04:14 am
-
Is there a way to detect if no hostile craft are active the mission but there are hostile ships waiting to be triggered to arrive.
I am building a mission where because of the way reinforcing waves arrive there is sometimes a delay of as much as 20 second between the last ship of the one wave of a wing being destroyed and the next arriving, but because of the other enemy wings in the area you can end up dealing with the stragglers of those wings while the problem wave arrives so I am looking at having command send a quick "we are still tracking enemy reinforcements" message should this gap occur so the player is reassured to hang about a little longer. There is an RTB message and directive but until the player gets to that point there is no way for them to know that.
-
Of the top of my head.
Check if there are any ships of the required wing present (num-ships-in-box, distance SEXPs, etc) Then check if the percentage of ships in that wing destroyed are 100%. If both are negative you're in a lull.
-
thanks mate that helped a lot. :yes:
-
Didn't I add the ability for Wings and IFF to num-ships-in-battle? That would seem the logical way.
-
That would be even better. :)