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

How to order unit move seperate 2 way...

Status
Not open for further replies.
Level 7
Joined
Mar 26, 2009
Messages
345
Using triggers, assign them to unit groups and have them move to points.

It's pretty easy to figure out once you dig around in the Trigger Editor.. Good luck!
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
Try this:
  • Actions
    • Set TempGroup = <Units>
    • Set TempGroup2 = (Random 5 units from TempGroup)
    • Unit Group - Pick every unit in TempGroup2 and do (Actions)
      • Loop - Actions
        • Set TempPoint = <Your Location 1>
        • Unit - Order (Picked unit) to Move To TempPoint
        • Unit Group - Remove (Picked unit) from TempGroup
        • Custom script: call RemoveLocation(udg_TempPoint)
    • Custom script: call DestroyGroup(udg_TempGroup2)
    • -------- ---------------------------------------------------------------- --------
    • Set TempGroup2 = (Random 5 units from TempGroup)
    • Unit Group - Pick every unit in TempGroup2 and do (Actions)
      • Loop - Actions
        • Set TempPoint = <Your Location 2>
        • Unit - Order (Picked unit) to Move To TempPoint
        • Unit Group - Remove (Picked unit) from TempGroup
        • Custom script: call RemoveLocation(udg_TempPoint)
    • Custom script: call DestroyGroup(udg_TempGroup2)
    • Custom script: call DestroyGroup(udg_TempGroup)
 
Status
Not open for further replies.
Top