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

bring the units to starting position

Status
Not open for further replies.
Use Unit Indexer (link in my signature)

  • Assign Start Position
    • Events
      • Game - UnitIndexEvent becomes Equal to 1.00
    • Conditions
      • (UDexUnits[UDex] is a Hero) Equal to True
    • Actions
      • Set HeroStartPosition[UDex] = (Position of UDexUnits[UDex])
  • Recall position
    • Events
      • A unit does something
    • Conditions
      • (TheUnitDoingSomething is a Hero) Equal to true
    • Actions
      • Unit - Move (UnitThatNeedsToBeMoved) to HeroStartPosition[(Custom value of (TheUnitDoingSomething))]
 

Chaosy

Tutorial Reviewer
Level 41
Joined
Jun 9, 2011
Messages
13,249
Actually you would get away with an location array here.
Since the starting units of a map is static and wont change throughout the game you can do something like:
pick all units in map
set counter = counter + 1
set startLoc[counter] = location of picked unit
set custom value of unit to counter

then you can do the following whenever you want
order unit to move to startloc[custom value of unit]

This is not optimal, I know. But it's the easiest way by far.
 
Status
Not open for further replies.
Top