So alot of people have wanted a respawn system in my map and i came up with one, it works and all but there is one problem. EVERY single trigger in my entire map that involved the original unit will not work properly, anyone know of a good way to fix this? i tried setting it to player controlled unit (1) but for some stupid reason every unit in the entire map could trip it...
Have a variable for your unit, in this case, its an array, and the unit that triggers it is the index of the player number.
But that asside, this trigger should work fine for any respawn, I just copypasta'd it out of my map and tweaked the condition slightly. The condition mainly, should fix your problem.
@caspersc: Go
I honestly don't see the difference, you swap one line of code for one line of code that does the same thing. I think it comes down to preference, and I like the wait command, I'm comfortable with it atm.
So alot of people have wanted a respawn system in my map and i came up with one, it works and all but there is one problem. EVERY single trigger in my entire map that involved the original unit will not work properly, anyone know of a good way to fix this? i tried setting it to player controlled unit (1) but for some stupid reason every unit in the entire map could trip it...
Have a variable for your unit, in this case, its an array, and the unit that triggers it is the index of the player number.
But that asside, this trigger should work fine for any respawn, I just copypasta'd it out of my map and tweaked the condition slightly. The condition mainly, should fix your problem.
@7MM3: Go
Why not wait for the timer you already created? Less code smell.
@caspersc: Go
I honestly don't see the difference, you swap one line of code for one line of code that does the same thing. I think it comes down to preference, and I like the wait command, I'm comfortable with it atm.