Hello... I'm trying to move the player's units orderly to different regions (positions)...
The player can recruit, convert units and so on along the way so I don't know how many, nor what units it has at this point. Also, if I tell the entire group to gather in one region they'll bump into each other, block one, etc... you probably know how it goes.
My solution is to have unit 1 to 11 get to a specific position and unit 12 and beyond assemble in one region. It's unlikely the player has 12 units or more by this point, meaning they should be able to gather safely in in one region.
I'm not an expert when it comes to this but I figured one way to handle this would be to convert a unit group to a unit array and then order each of the array's position to order the respective unit to its respective region. But... it doesn't work:
EDIT:
Actually, I just used the wrong unit group the first time... and now they got moving - except they seem to ignore my positions.
On the picture above we see the regions/positions. On the top from the left it's 1,2,3,4 5 (I only marked 1 - 3 on the picture, though)
And then it's position 6, 7, 8, etc... 11
Assuming the Banshee and Spider are array positions 4 to 5 respectively they should be to the right. With only Necro and Accolyte on the second row. Ideas?
What am I doing wrong...? Or is there perhaps a better way to do this?
The player can recruit, convert units and so on along the way so I don't know how many, nor what units it has at this point. Also, if I tell the entire group to gather in one region they'll bump into each other, block one, etc... you probably know how it goes.
My solution is to have unit 1 to 11 get to a specific position and unit 12 and beyond assemble in one region. It's unlikely the player has 12 units or more by this point, meaning they should be able to gather safely in in one region.

I'm not an expert when it comes to this but I figured one way to handle this would be to convert a unit group to a unit array and then order each of the array's position to order the respective unit to its respective region. But... it doesn't work:

EDIT:
Actually, I just used the wrong unit group the first time... and now they got moving - except they seem to ignore my positions.
On the picture above we see the regions/positions. On the top from the left it's 1,2,3,4 5 (I only marked 1 - 3 on the picture, though)
And then it's position 6, 7, 8, etc... 11

Assuming the Banshee and Spider are array positions 4 to 5 respectively they should be to the right. With only Necro and Accolyte on the second row. Ideas?
What am I doing wrong...? Or is there perhaps a better way to do this?
Last edited: