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!
I think the easiest way would be to give every unit another custom value and get the location by this value.
This would look like this:
Respawnthings
Events
Map initialization
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
Set Counter = (Counter + 1)
Unit - Set the custom value of (Picked unit) to Counter
Set SpawnPoint[Counter] = (Position of (Picked unit))
Respawnthings Copy
Events
Unit - A unit Dies
Conditions
Actions
Unit - Create 1 (Unit-type of (Dying unit)) for (Owner of (Dying unit)) at SpawnPoint[(Custom value of (Dying unit))] facing Default building facing (270.0) degrees
Unit - Set the custom value of (Last created unit) to (Custom value of (Dying unit))
EDIT: With vJass you could also use the solution I posted here.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.