• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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