Tried a bunch of different methods but nothing works...And i can see no way twhy this shouldnt work.
Is it because of the "Wait" line? that is the only possible problem i can see but i cant think of any replacement for it either, dont want the units to respawn instantly.
And if i say put the create unit line after the wait line and remove the whole hide process, that would not work if multiple units died during the 180sec wait.
(Position of (Triggering unit)) == (Random point in SpawnPointForest)
I believe that this is your problem. That is checking to see if the triggering unit's point is equal to a randomly generated point in the region. You should probably just check to see if the unit is in the region.
Edit: I think that the wait is another problem with this. I have no idea why, but it makes my respawn trigger not work.
What Nebuli2 is saying, is correct, you are actually checking if the position of the dying unit is the same point as a (Random point in SpawnPointForest); not if the dying unit is inside the region.
Also, you should use your second trigger, the first one is not very efficient, and might not even work after fixing the bug above
Hi, basicly does anyone know why this isnt working?
Tried a bunch of different methods but nothing works...And i can see no way twhy this shouldnt work.
Is it because of the "Wait" line? that is the only possible problem i can see but i cant think of any replacement for it either, dont want the units to respawn instantly.
And if i say put the create unit line after the wait line and remove the whole hide process, that would not work if multiple units died during the 180sec wait.
EDIT: tried a different approach, no difference:
I believe that this is your problem. That is checking to see if the triggering unit's point is equal to a randomly generated point in the region. You should probably just check to see if the unit is in the region.
Edit: I think that the wait is another problem with this. I have no idea why, but it makes my respawn trigger not work.
is clearly wrong, going to test it
save the unit in a local variable and then wait, create it
edit: lol super necro
if anybody ever finds this again: this works http://forums.sc2mapster.com/development/triggers/19446-unit-respawn-on-death/?post=12
lol atleast he solved the posters issue but the poster isn't ever gonna be back on :P