| 02-04-2006, 08:02 PM | #1 |
I'm doing a map for me and my friends and they wanted a trigger that when a unit dies in a region they get respawned in the middle of the same region.Any triggers for that? |
| 02-04-2006, 08:26 PM | #2 |
| 02-04-2006, 09:00 PM | #3 |
That wont work 100% of the time. You have to set Dying unit to a variable and then recreate a unit based on that variable for it to work, because otherwise other units can die and then the respawned unit will be the wrong type of unit. |
| 02-05-2006, 12:09 AM | #4 |
Thats not true. DyingUnit() is a local variable. It is true you should save the unit type tho, cuz the dead unit MIGHT be removed from the game before the 30 sec wait is over. |
| 02-05-2006, 01:00 PM | #5 |
i'll do a wait for 20 seconds and see if it works and i'll add the variable if it doesnt work it doesnt matter |
| 02-05-2006, 01:11 PM | #6 |
Oh yeah also If you just want it for a specific player youll have to add that to the conditions. Trigger: (Owner of (Dying unit)) Equal to <Your Player>and you might want to change the "Wait 30 seconds" to "Wait game-time 30 seconds" |
| 02-06-2006, 11:02 AM | #7 |
Thx for replies. |
| 02-06-2006, 01:13 PM | #9 |
Yeah my trigger was very basic, wasnt really sure how he wanted it. |
