HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit orders slow down game?

12-22-2002, 07:32 PM#1
FyreDaug
Well here's my situation, my units that are spawned at 6 different places (at the same time).

The spawn orders are similar to those of AoS (just basic), but sometimes the units will just stop, won't attack whether they are within attack range or not, but then after a few second they will attack again. I donno if it's slowing down the game or somethings wrong, here's my code:

EVENT:
Time - Every 22 seconds of game time
CONDITIONS:
Team1Spawn[1] equal to true (((An array boolean)))
ACTIONS:
Unit - Create 1 (unit1) for player 1 at center of P1top facing P2top.
Unit - Order Last (Created Unit) to Attack-Move to center of P2Top.
Unit - Create 1 (unit2) for player 1 at center of P1top facing P2top.
Unit - Order Last (Created Unit) to Attack-Move to center of P2Top.
Unit - Create 1 (unit3) for player 1 at center of P1top facing P2top.
Unit - Order Last (Created Unit) to Attack-Move to center of P2Top.

What's going on with it?
12-22-2002, 08:48 PM#2
3DGuy
hmm have you tried added them in groups? and why is there a condition? whats that for?

try grouping em

actions:
Unit - Create 1 (unit1) for player 1 at center of P1top facing P2top
Unit group - add last created unit to Unit Group Variable
Unit - Create 1 (unit2) for player 1 at center of P1top facing P2top
Unit group - add last created unit to Unit Group Variable
Unit - Create 1 (unit3) for player 1 at center of P1top facing P2top
Unit group - add last created unit to Unit Group Variable
Unit group - Order (Unit Group Variable) to attack P2top

NOTE:*Make a Unit Group Variable*

or this is a better way

actions:
Unit - Create 1 (unit1) for player 1 at center of P1top facing P2top
Unit - Create 1 (unit2) for player 1 at center of P1top facing P2top
Unit - Create 1 (unit3) for player 1 at center of P1top facing P2top
Unit group - pick every units in P1top and do attack-move center of P2top

id suggest you do the second, try if it still slows down
12-22-2002, 09:36 PM#3
dataangel
It's not a lag problem, it's just that war3's quirky about moving groups of units. Try 3DGuy's suggestions.