• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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