• 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.

Units in a row (literally)

Status
Not open for further replies.
Level 5
Joined
Apr 27, 2014
Messages
87
i saw in some maps some units put in a row, but they are put precisely, i mean like in an exact row, i mean no a little wrong, but i mean precise, nvm you know what i mean..

how do people do that? is there a technique or do people struggle like an hour with the mouse?
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
You can create a few units in a row like this, assume arrows are units.

--> --> -->

then you can copy these 3 units and paste

--> --> --> --> --> -->

then you can copy these 6 units


, or just create units with triggers as nichilus said.
 
Level 17
Joined
Dec 11, 2014
Messages
2,004
I say use X&Y. Get a Unit's X and Y and then Place another unit Within the Y and a Different X or Vica versa. Also, if you want Exact Row but in an Unpredictable angle, Use Polar offsets. (Beware of the leaks!)
Example:
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Set Example_Unit = (Random unit from (Units in (Playable map area)))
      • -------- If you want your Creation unit to be Left of the Unit use 90. for Right use 270. --------
      • Set Row_Degree = ((Facing of Example_Unit) + 90.00)
      • Set Unit_Point = (Position of Example_Unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Row_Degree Greater than or equal to 360.00
        • Then - Actions
          • Set Row_Degree = (Row_Degree - 360.00)
        • Else - Actions
      • Set Unit_Creation_Point = (Unit_Point offset by 128.00 towards Row_Degree degrees)
      • Custom script: set Example_Unit = null
      • Custom script: call RemoveLocation(udg_Unit_Point)
      • Unit - Create 1 Footman for Player 1 (Red) at Unit_Creation_Point facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_Unit_Creation_Point)
That should work IMO.
 
Status
Not open for further replies.
Top