- Joined
- Aug 20, 2012
- Messages
- 36
Ok, This stopped working after I made my map 480x480. Does anyone have a solution?
-
Creep Revival System
-
Events
- Map initialization
- Conditions
-
Actions
- Set NCGroup = (Units in (Playable map area) owned by Neutral Hostile)
-
Unit Group - Pick every unit in NCGroup 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
- Custom script: call DestroyGroup(udg_NCGroup)
-
Events
-
Reviving Creeps
-
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 game-time seconds
- Set CreepRevival[1] = (Center of (Entire map))
- Set CreepRevival[2] = (CreepRevival[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 CreepRevival[2] facing (Random angle) degrees
- Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
- Custom script: call RemoveLocation(udg_CreepRevival[1])
- Custom script: call RemoveLocation(udg_CreepRevival[2])
-
Events