Hello.
I'm working on an capture the flag like RTS were if you click the flag selected units will go to capture it.
a flag will have a max number of carriers. Meaning if you have ten units selected but there are only five free spots on the flag. only the first five will first become unselected, then run to the flag to carry it.
To achieve this I set the flag object with two variables. one called "maxcarry" and the other called "currentcarry". If currentcarry is less than maxcarry, The event would deselect then increase current by one. If I select one unit at a time then tell it to capture the flag. The method works. if there is a spot the unit will take it and if not it will stand still.
However all units selected become unselected and go for the flag even if there is only one spot.
How can I create a function/loop/event that will pick out the needed units, then send them to the flag in a what I would imagine would be a "first come first serve" style?
Sorry I would attach a pic of the event, But I deleted it when I saw it did not work. it was just the condition that if currentcarry is less than max then deselect and go to the flag and increase current by one.
Thanks