Kosire
New Member
- Reaction score
- 0
My creep respawn triggers are from: http://www.thehelper.net/forums/showthread.php?t=55581
So I used the above tutorial to create creep revival system and it worked with my original map. Then I was dissatisfied with my map boundaries so I went into Scenery - Map Size and Camera Bounds and changed the size of my map. I don't know if I was supposed to change it proportionally or to a certain dimensions for a bigger size map but.. now all the creeps respawn in areas WAY off of their starting locations..
help....
So I used the above tutorial to create creep revival system and it worked with my original map. Then I was dissatisfied with my map boundaries so I went into Scenery - Map Size and Camera Bounds and changed the size of my map. I don't know if I was supposed to change it proportionally or to a certain dimensions for a bigger size map but.. now all the creeps respawn in areas WAY off of their starting locations..
help....
Trigger:
- Creep Rev Initial
- Events
- Map initialization
- Conditions
- Actions
- Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)
- Loop - Actions
- Set Integer = (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 Neutral Hostile) and do (Actions)
- Events
Trigger:
- Revive Creeps 1 by 1 Copy
- Events
- Unit - A unit Dies
- Conditions
- ((Owner of (Triggering unit)) Equal to Neutral Hostile) and (((Triggering unit) is Summoned) Not equal to True)
- Actions
- Wait 40.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 Neutral Hostile at tempPoint[2] facing Default building facing 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