1. Put a region above the area.
2. Calc x and y offsets towards the middle, then subtract these offsets from the middle point and you got the new position for your unit. Move it there, ignore placement.
So this:
offsetXtoMiddle = XofUnitPosition - XofCenterOfRegion
newX = XofCenterOfRegion - offsetXtoMiddle
20 = 120 - 100
80 = 100 - 20
> xBefore = 120; xAfter = 80
3. Set the facing of each unit to current facing + 180.
1. Put a region above the area.
2. Calc x and y offsets towards the middle, then subtract these offsets from the middle point and you got the new position for your unit. Move it there, ignore placement.
So this:
offsetXtoMiddle = XofUnitPosition - XofCenterOfRegion
newX = XofCenterOfRegion - offsetXtoMiddle
20 = 120 - 100
80 = 100 - 20
> xBefore = 120; xAfter = 80
3. Set the facing of each unit to current facing + 180.
This?