http://world-editor-tutorials.thehelper.net/revive.php
I copied this exactly for my hero revival trigger. However I didn't want the heroes to revive at the center of the map, so I changed the revival line accordingly to this:
custom script: call ReviveHeroLoc(OURHERO, GetPlayerStartLocationLoc(GetOwningPlayer(OURHERO)),true)
That is the only line I changed as it says in the tutorial. Now, in testing heroes were reviving in opponents start locations instead of their own. Only when I test on single player custom map does it work consistently.... The tutorial states that this should work with multiple heroes since it uses local variables. What's wrong???
I copied this exactly for my hero revival trigger. However I didn't want the heroes to revive at the center of the map, so I changed the revival line accordingly to this:
custom script: call ReviveHeroLoc(OURHERO, GetPlayerStartLocationLoc(GetOwningPlayer(OURHERO)),true)
That is the only line I changed as it says in the tutorial. Now, in testing heroes were reviving in opponents start locations instead of their own. Only when I test on single player custom map does it work consistently.... The tutorial states that this should work with multiple heroes since it uses local variables. What's wrong???