- Joined
- Jul 30, 2009
- Messages
- 5
Hey i really could use some help here, I've followed a few respawn tutorials but i cant figure out what the problem with my trigger is. Here's the first part of the trigger...
and heres the 2nd part.
-
Start
-
Events
- Map initialization
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 12 (Brown)) and do (Actions)
-
Loop - Actions
- Set Integer = 1
- Unit - Set the custom value of (Picked unit) to Integer
- Custom script: set udg_Creep_X[udg_Integer] = GetUnitX(GetEnumUnit())
- Custom script: set udg_Creep_Y[udg_Integer] = GetUnitY(GetEnumUnit())
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 12 (Brown)) and do (Actions)
-
Events
and heres the 2nd part.
-
Respawn Units
-
Events
- Unit - A unit Dies
-
Conditions
- ((Owner of (Triggering unit)) Equal to Player 12 (Brown)) and ((Triggering unit) Not equal to (Summoned unit))
-
Actions
- Wait 15.00 seconds
- Set tempPoint[1] = (Center of (Entire map))
- Set tempPoint[2] = (tempPoint[1] offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))]))
- Unit - Create 1 (Unit-type of (Triggering unit)) for Player 12 (Brown) at ((Center of (Entire map)) offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))])) facing (Random angle) degrees
- Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
- Custom script: call RemoveLocation(udg_tempPoint[1])
- Custom script: call RemoveLocation(udg_tempPoint[2])
-
Events
Last edited by a moderator: