i want to create a trigger which respawns Units when they die. (1 Tank spawn on Map - he dies - wait 10 sec and respawn him) Thougt it will be pretty easy, but its the first time i am working with gobal unit groups.
At the moment i am creating the units in a other triggers and gave the units i want to respawn a own global unit group. In the New Trigger i tryed:
Event:
Unit 1 from Unit Group(global) XY dies. (Also tryed with random unit from Unitgroup)
Action:
Wait 10 sec game time
Create 1 Unit for Player XY at center of region.
My problem now is, each time unit on the map dies, the trigger is triggered. Even when Enemy Zerg Critters die... i am not sure whats wrong about my trigger. Can someone help me please? I am not sure what is wrong with my global unit groups...
At the time the map runs and the event is registered, Unit 1 from Unit Group(global) is null because the group is empty.
You need to make it
Any unit dies.
Condition: Triggering Unit == Unit 1 from Unit Group(global)
Hi Guys,
i want to create a trigger which respawns Units when they die. (1 Tank spawn on Map - he dies - wait 10 sec and respawn him) Thougt it will be pretty easy, but its the first time i am working with gobal unit groups.
At the moment i am creating the units in a other triggers and gave the units i want to respawn a own global unit group. In the New Trigger i tryed:
Event:
Unit 1 from Unit Group(global) XY dies. (Also tryed with random unit from Unitgroup)
Action:
Wait 10 sec game time Create 1 Unit for Player XY at center of region.
My problem now is, each time unit on the map dies, the trigger is triggered. Even when Enemy Zerg Critters die... i am not sure whats wrong about my trigger. Can someone help me please? I am not sure what is wrong with my global unit groups...
@Tarbald: Go
At the time the map runs and the event is registered, Unit 1 from Unit Group(global) is null because the group is empty.
You need to make it
Any unit dies.
Condition: Triggering Unit == Unit 1 from Unit Group(global)
Thanks, works out all fine now! :) Love this forum