- Joined
- Dec 9, 2014
- Messages
- 176
I just need a good trigger that will respawn any units belonging to player 9 and 12 3 minutes after they die. My first attempt didn't work due to other units who die overriding the previous ones and stopping them from respawning. I am trying to get this other one I found here: www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/creep-respawn-gui-65987/ to work with 2 players but it seems to either only work with 1 player or I'm not making the trigger right. If I made this trigger wrong please let me know, thanks!
-
Respawn Set
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set Respawn_Time = 180.00
-
Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 9 (Gray)) and do (Actions)
-
Loop - Actions
-
Set Temp_Integer[9] = (Temp_Integer[9] + 1)
-
Unit - Set the custom value of (Picked unit) to Temp_Integer[9]
-
Set Creep_Point[Temp_Integer[9]] = (Position of (Picked unit))
-
-
-
Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 12 (Brown)) and do (Actions)
-
Loop - Actions
-
Set Temp_Integer[12] = (Temp_Integer[12] + 1)
-
Unit - Set the custom value of (Picked unit) to Temp_Integer[12]
-
Set Creep_Point[Temp_Integer[12]] = (Position of (Picked unit))
-
-
-
-
-
Respawn
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Triggering unit)) Equal to Player 9 (Gray)
-
(Custom value of (Triggering unit)) Greater than 0
-
-
-
And - All (Conditions) are true
-
Conditions
-
(Owner of (Triggering unit)) Equal to Player 12 (Brown)
-
(Custom value of (Triggering unit)) Greater than 0
-
-
-
-
Then - Actions
-
Wait Respawn_Time seconds
-
Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Triggering unit)) at Creep_Point[(Custom value of (Triggering unit))] facing Default building facing degrees
-
-
Else - Actions
-
-
-