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

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,239
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