Hello guys, I need some help if it weren't so much trouble. I have a castle defense map where there are wave spawns. But by the end of the game, with so much units in the map, the unit waves begins to walk very slow, like they start moving but they take a few steps and stop again, they were supposed to keep Attack-moving/patroling to they targeted point I used via trigger.
They don't actually "stop" they just take too long to get to the targeted area, and that throttles the whole path they travel, making the map unplayable if those spawns aren't killed before they throttle everything.
Any help is much appreciated.
They don't actually "stop" they just take too long to get to the targeted area, and that throttles the whole path they travel, making the map unplayable if those spawns aren't killed before they throttle everything.
-
Spawns
-
Events
- Time - Every 4.00 seconds of game time
- Conditions
-
Actions
- Set Attack[4] = (Random point in Attack 3 <gen>)
- Set Chaos_Demons[1] = (Units in Region 204 <gen> matching ((((Matching unit) is Undead) Equal to True) and ((Owner of (Matching unit)) Equal to Player 10 (Light Blue))))
- Set Pos[2] = (Center of Spawn 1 <gen>)
- Set Pos[3] = (Center of Spawn 2 <gen>)
- Set Pos[4] = (Center of Spawn 3 <gen>)
- Set Pos[5] = (Center of Spawn 4 <gen>)
- Set Pos[6] = (Center of Spawn 5 <gen>)
- Unit - Create 2 Spawn[SpawnInt] for Player 10 (Light Blue) at Pos[2] facing Default building facing degrees
- Unit - Create 1 Spawn[SpawnInt] for Player 10 (Light Blue) at Pos[3] facing Default building facing degrees
- Unit - Create 1 Spawn[SpawnInt] for Player 10 (Light Blue) at Pos[5] facing Default building facing degrees
- Unit - Create 1 Spawn[SpawnInt] for Player 10 (Light Blue) at Pos[6] facing Default building facing degrees
- Unit - Create 2 Spawn[SpawnInt] for Player 10 (Light Blue) at Pos[4] facing Default building facing degrees
-
Unit Group - Pick every unit in Chaos_Demons[1] and do (Actions)
-
Loop - Actions
- Unit - Order (Picked unit) to Patrol To Attack[4]
-
Loop - Actions
- Custom script: call RemoveLocation( udg_Pos[2] )
- Custom script: call RemoveLocation( udg_Pos[3] )
- Custom script: call RemoveLocation( udg_Pos[4] )
- Custom script: call RemoveLocation( udg_Pos[5] )
- Custom script: call RemoveLocation( udg_Pos[6] )
- Custom script: call RemoveLocation( udg_Attack[4] )
- Custom script: call DestroyGroup(udg_Chaos_Demons[1])
-
Events
Any help is much appreciated.