How would one go about making a trigger where if a unit dies it will respawn 30 seconds later at a given point? I don't know how to identify which player the unit belonged to and how to respawn it for that specific player.
I've tried the general wait 30 seconds and then create.. but for some reason if i put any sort of wait command before the create an error occurs saying the point is out of bounds or something.... but if i just make it instantly recreate it works.
I've also tried using a timer and making it run after last started timer ended... still same thing happened.
Also how do I work with leaderboards? i jsut need a simple one that keeps track of scores on each team.
Make sure the units death time is larger than the revive time. The units data is saved untill the death time is up, so if you revive it after that, there will be no data to revive it with. Here is a hero revive tutorial-
How would one go about making a trigger where if a unit dies it will respawn 30 seconds later at a given point? I don't know how to identify which player the unit belonged to and how to respawn it for that specific player.
I've tried the general wait 30 seconds and then create.. but for some reason if i put any sort of wait command before the create an error occurs saying the point is out of bounds or something.... but if i just make it instantly recreate it works.
I've also tried using a timer and making it run after last started timer ended... still same thing happened.
Also how do I work with leaderboards? i jsut need a simple one that keeps track of scores on each team.
Make sure the units death time is larger than the revive time. The units data is saved untill the death time is up, so if you revive it after that, there will be no data to revive it with. Here is a hero revive tutorial-
http://www.youtube.com/onetwosc#p/c/165B3EF3942D1179/0/kEdOqHbborI
also this should not be in the tutorial section, put in map development.