Page 1 of 1

Un-assign Mission?

Posted: Fri Nov 02, 2018 12:12 am
by BeirutDude
OK, so I'm designing my first Scenario utilizing Lau scripting and I'm using the assign mission script to allow a strike mission to form up and then launch the strike in some type of order, rather than more strung out. So first I'm sending the aircraft into a formation box (1 degree by 1 degree) to form up & tank and then assigning them to a strike mission at a certain time. That's easy but I also want the strikes to occur over multiple days so would like to unassign and then reassign the aircraft to missions. SOOOOOOO, is there a way to have them drop out of the mission upon return to base or should I just set up multiple one time missions for each day? The latter is likely the route I will go but just wondering if I can do this with just one mission per mission type?

Al

RE: Un-assign Mission?

Posted: Fri Nov 02, 2018 8:08 pm
by michaelm75au
Suggestion:
Have a timed event that checks the units assigned to the active strike mission. If the unit status is not flying or ready, then clear the 'mission' property on the unit. Or just if the status is RTB, clear it then.

RE: Un-assign Mission?

Posted: Wed Dec 12, 2018 9:14 pm
by AlphaSierra
If ScenEdit_AssignUnitToMission('PLAN SAG 1', 'Kill The Carrier')

Assigns a (Group in this case) to mission 'kill the carrier'
Note: *watch spelling and case

ScenEdit_AssignUnitToMission('PLAN SAG 1', '')

Assigns that same group to no mission