- Joined
- May 15, 2007
- Messages
- 88
(Still not resolved - Removing this when I get it to work)
(Map is an Escape map)
The units won't respawn if they die.
Firstly, this my respawn system, which won't work when unit gets hit by the periodic thrown rock by the turtle.
Heres what happens if an unit dies:
*WannabeSmartie is the unit the players control.
Below is a description of the area where the unit won't respawn if killed(By Siege rock, 1 hit kill)
The turtle closest to text attacks with a siege attack every 3 sec at region 3.
For some reason, units won't respawn if killed by Siege (Since they explode)
So I made a trigger specifically for this to respawn unit at the start of that challenge
Problem is, it won't work.
(ContStartup is the start of that challenge)
(Map is an Escape map)
The units won't respawn if they die.
Firstly, this my respawn system, which won't work when unit gets hit by the periodic thrown rock by the turtle.
-
Red Copy Copy 9 Copy 4
-
Events
- Unit - A unit enters Checkpoint <gen>
-
Conditions
- (Owner of (Triggering unit)) Equal to Player 1 (Red)
-
Actions
- Region - Center Region 1043 <gen> on (Position of (Triggering unit))
- Camera - Pan camera for (Owner of (Triggering unit)) to (Position of (Triggering unit)) over 1.00 seconds
-
Events
Heres what happens if an unit dies:
-
Respawn_Red
-
Events
- Unit - A unit owned by Player 1 (Red) Dies
-
Conditions
- (Unit-type of (Triggering unit)) Equal to WannabeSmartie
- ((Owner of (Triggering unit)) Current lumber) Greater than 50
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Owner of (Triggering unit)) Current lumber) Greater than 50
- (Unit-type of (Triggering unit)) Equal to WannabeSmartie
-
Then - Actions
- Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + ,Your unit will respawn in 10 seconds)
- Wait 10.00 seconds
- Unit - Create 1 WannabeSmartie for (Owner of (Triggering unit)) at (Random point in Region 1043 <gen>) facing Default building facing degrees
- Unit Group - Add (Last created unit) to RestartGroup
- Unit Group - Add (Last created unit) to UnitGroup
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
*WannabeSmartie is the unit the players control.
Below is a description of the area where the unit won't respawn if killed(By Siege rock, 1 hit kill)
The turtle closest to text attacks with a siege attack every 3 sec at region 3.
For some reason, units won't respawn if killed by Siege (Since they explode)
So I made a trigger specifically for this to respawn unit at the start of that challenge
-
Respawnt
-
Events
- Unit - A unit enters 3 <gen>
- Conditions
-
Actions
- Wait 5.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((1 <gen> contains (Triggering unit)) Equal to True) or ((2 <gen> contains (Triggering unit)) Equal to True)
-
Then - Actions
- Do nothing
-
Else - Actions
- Wait 10.00 seconds
- Unit - Create 1 WannabeSmartie for (Owner of (Triggering unit)) at (Center of ContStartup <gen>) facing Default building facing degrees
-
If - Conditions
-
Events
Problem is, it won't work.
(ContStartup is the start of that challenge)
Last edited: