So you'll want a center point. Lets assume it's the middle of the unit group. You'll want to save the distance and angles of all the units from that center point. So make some array variables, two of type real, one of type unit. You'll want a one dimension variable of type integer to count the number of units and assign each unit an integer.
So just loop through the unit group. Each time a unit is picked, you'll wanna modify the counter variable to be one more. Save the distance and angle from the units to the center point to both variables at the place of the counter, as well as the unit.
Component 2: Loading
Then you'll wanna loop integer from one to the counter, and move the units to the distances and angles from a new center point EXCEPT make the angle + 90.
Component 3: ???
Component 4: Success.
Feel free to ask any questions, like, what's an array, what's a loop, how to get the new center point, etc.
HI, i want to ask how i can Copy multiple Units to an other Prosition and rotate them like shown below:
@windowssiebenfan: Go
Component 1: Saving
So you'll want a center point. Lets assume it's the middle of the unit group. You'll want to save the distance and angles of all the units from that center point. So make some array variables, two of type real, one of type unit. You'll want a one dimension variable of type integer to count the number of units and assign each unit an integer.
So just loop through the unit group. Each time a unit is picked, you'll wanna modify the counter variable to be one more. Save the distance and angle from the units to the center point to both variables at the place of the counter, as well as the unit.
Component 2: Loading
Then you'll wanna loop integer from one to the counter, and move the units to the distances and angles from a new center point EXCEPT make the angle + 90.
Component 3: ???
Component 4: Success.
Feel free to ask any questions, like, what's an array, what's a loop, how to get the new center point, etc.
Thank you it works :)