I'm working on a trigger which spawns a group of Footmen and Riflemen, and a Transport Ship, and sends them to a location using the ship. So far, I have managed to make the infantry units spawn and go to the shoreline, where a transport ship spawns and is boarded by the group of infantry.
I want the ship to wait until all the soldiers are loaded before it departs, but I can't figure out how to do it. I could do it if a single unit were boarding the ship, using
Wait until (((unit) is being transported) equal to (true))
but there doesn't seem to be an equivalent "wait for condition" function for Unit Groups. I considered using "Wait For Condition - (And, Multiple Conditions)" to wait for each soldier individually, but not only would it be a bit messy, unfortunately the Wait For Condition function also only allows an "And" with two conditions. That makes it possible for two units loading into a transport. I have five in this trigger.
I want the ship to wait until all the soldiers are loaded before it departs, but I can't figure out how to do it. I could do it if a single unit were boarding the ship, using
Wait until (((unit) is being transported) equal to (true))
but there doesn't seem to be an equivalent "wait for condition" function for Unit Groups. I considered using "Wait For Condition - (And, Multiple Conditions)" to wait for each soldier individually, but not only would it be a bit messy, unfortunately the Wait For Condition function also only allows an "And" with two conditions. That makes it possible for two units loading into a transport. I have five in this trigger.