- Joined
- Mar 2, 2013
- Messages
- 127
So I need 3 random units from a group, and save them into var. The problem is the way I do it over writes the previous ones. Here Is my temp until I find a better way of doing it.
-
Unit Group - Pick every unit in (Random 1 units from Ka_Group[2]) and do (Actions)
-
Loop - Actions
- Set Ka_Unit[12] = (Picked unit)
- Set Ka_Point[9] = (Position of Ka_Unit[12])
-
Loop - Actions
-
Unit Group - Pick every unit in (Random 1 units from Ka_Group[2]) and do (Actions)
-
Loop - Actions
- Set Ka_Unit[13] = (Picked unit)
- Set Ka_Point[10] = (Position of Ka_Unit[13])
-
Loop - Actions
-
Unit Group - Pick every unit in (Random 1 units from Ka_Group[2]) and do (Actions)
-
Loop - Actions
- Set Ka_Unit[14] = (Picked unit)
- Set Ka_Point[11] = (Position of Ka_Unit[14])
-
Loop - Actions