When a certain unit dies, I want to spawn another unit directly where it died. I can't do it through data, because I need to issue a command to the unit spawned, and I can't do it though triggers, because "Position of Triggering Unit <the one that died>" only works for alive units. Any idea what to do?
Data has an effect called "Issue Order", if that wont work, triggers have an event that "Any Unit is Created" that allows you limit it to an ability or behavior
Create a unit using data (Behavior with a "Create Unit" set as final effect, if you can then use an "Issue Order" as the spawn effect(or w/e its called) in the Create Unit effect, if thats not possible pick up the unit creation with a trigger (Any unit is created))
When a certain unit dies, I want to spawn another unit directly where it died. I can't do it through data, because I need to issue a command to the unit spawned, and I can't do it though triggers, because "Position of Triggering Unit <the one that died>" only works for alive units. Any idea what to do?
Data has an effect called "Issue Order", if that wont work, triggers have an event that "Any Unit is Created" that allows you limit it to an ability or behavior Create a unit using data (Behavior with a "Create Unit" set as final effect, if you can then use an "Issue Order" as the spawn effect(or w/e its called) in the Create Unit effect, if thats not possible pick up the unit creation with a trigger (Any unit is created))
Position of (Triggering Unit) should work for dying units. I do it in two of my maps and it works just fine.
yes it should work. But if you use any waits between death and spawn you should drop position of dying unit into local point variable right away