How do I give each unit a custom ID to refer to when that unit dies?
I have 4 different units spawn at start of game. When one dies, I want that exact same unit to re-spawn at a given time. But I can not figure out how to ID that unit. In other words, how do I make the game know that it was a Zergling that died so it can create a new Zergling... instead of creating one of every unit.
Yeah that didn't work... I forgot the unit still needs his original spawn point. I want each unit to re-spawn at his own unique location and this would not work for that.
How do I give each unit a custom ID to refer to when that unit dies?
I have 4 different units spawn at start of game. When one dies, I want that exact same unit to re-spawn at a given time. But I can not figure out how to ID that unit. In other words, how do I make the game know that it was a Zergling that died so it can create a new Zergling... instead of creating one of every unit.
@xHawkEyex: Go
Duh ha? Thanks man!!!
@erealmz: Go
Yeah that didn't work... I forgot the unit still needs his original spawn point. I want each unit to re-spawn at his own unique location and this would not work for that.
@erealmz: Go
Okay i got it for anyone else who might be wondering.
Unit - Any Unit dies
(Unit type of (Triggering unit)) == Roach
(Owner of (Triggering unit)) == 2
Unit - Create 1 Roach for player 2 at (Center of Roach) using default facing (No Options)