• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] Mui

Status
Not open for further replies.
Add them to a unit group after they are made. e.g.:
  • For each (Integer TempLoop) from 1 to 12, do (Actions)
    • Loop - Actions
      • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to GroupVariable
GroupVariable is a unit group variable. If you need it to be MUI, we need a bit of context (is this a spell? how are you going to use it? what is the rest of the trigger?).

Also, (Center of (Playable map area)) is a point leak. See:
Memory Leaks and Custom Scripts

  • Set CenterOfMap = Center of (Playable map area)
  • For each (Integer TempLoop) from 1 to 12, do (Actions)
    • Loop - Actions
      • Unit - Create 1 Footman for Player 1 (Red) at CenterOfMap facing Default building facing degrees
      • Unit Group - Add (Last created unit) to GroupVariable
  • Custom script: call RemoveLocation(udg_CenterOfMap)
 
Level 13
Joined
Jul 16, 2012
Messages
679
  • For each (Integer TempLoop) from 1 to 12, do (Actions)
    • Loop - Actions
      • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to GroupVariable

Okay.. i store it now all units i need.
How about using this Units in Unit Group?
I using? Picked?
 
Status
Not open for further replies.
Top