My map contains a Creep respawn function that only seems to work when the Wait action is less than or equal to 80 seconds.
If I set the Wait line to 90 seconds or more, the Creeps won't respawn. Any ideas?
Trigger:
- CreepSet
- Events
- Time - Elapsed game time is 1.00 seconds
- Conditions
- Actions
- Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)
- Loop - Actions
- Set unitStartPosCount = (unitStartPosCount + 1)
- Set unitStartPosArray[unitStartPosCount] = (Position of (Picked unit))
- Unit - Set the custom value of (Picked unit) to unitStartPosCount
- Loop - Actions
- Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)
- Events
Trigger:
- CreepDies
- Events
- Unit - A unit Dies
- Conditions
- (Owner of (Triggering unit)) Equal to Neutral Hostile
- Actions
- Custom script: local unit udg_tempUnit
- Set tempUnit = (Triggering unit)
- Wait 80.00 game-time seconds
- Special Effect - Create a special effect at unitStartPosArray[(Custom value of tempUnit)] using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Trigger - Run CleanEffects <gen> (ignoring conditions)
- Unit - Create 1 (Unit-type of tempUnit) for Neutral Hostile at unitStartPosArray[(Custom value of tempUnit)] facing (Random angle) degrees
- Unit - Set the custom value of (Last created unit) to (Custom value of tempUnit)
- Set unitStartPosArray[(Custom value of (Last created unit))] = (Position of (Last created unit))
- Events
If I set the Wait line to 90 seconds or more, the Creeps won't respawn. Any ideas?