• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Unit Squad

Status
Not open for further replies.
Level 3
Joined
Apr 26, 2014
Messages
37
Is there any possiblity to reduce the distance between units picked in one group? For example, in StarCraft they march shoulder to shoulder, as close one to another as possible. But in WarCraft they spread on large area, which just doesn't fit my tiny map.
I've tried to search for variable like "distance between units in unit group" in "game constants" but haven't found anything yet.
 
Level 12
Joined
May 20, 2009
Messages
822
There's a couple things you could do.

A. Reduce their collision size, Or
B. Make a trigger like this:

  • Move Order
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Issued order) Equal to (Order(smart))
              • (Issued order) Equal to (Order(move))
        • Then - Actions
          • Unit - Order (Triggering unit) to Move To (Target point of issued order)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Issued order) Equal to (Order(attack))
            • Then - Actions
              • Unit - Order (Triggering unit) to Attack-Move To (Target point of issued order)
            • Else - Actions
      • Trigger - Turn on (This trigger)
Formation Movement has to be turned off for this to work, but at the same time it makes formation movement kinda actually do like it sounds.

What Formation Movement REALLY does is it orders units with longer ranges to stay further back in a selection group. But this makes more sense, it actually makes the units take a formation if it's on, and just move independent without moving into a formation if it's off.
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
As far as I know the only way is reducing the unit's collision size, for example if you make units collision size to 1 they will go shoulder to shoulder.
 
Status
Not open for further replies.
Top