• 🏆 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!

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