HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spawns filing into a line

08-21-2004, 07:01 PM#1
Ez8
Hi.

I have a problem with the spawn's movements in my map.

Instead of moving along as a collective mob, they all tend to file into a line, and move in a line instead. This is not good, because they end up bumping into each other, and block each other's way.

Is there a way that I can turn off this behaviour?
08-21-2004, 07:45 PM#2
Shimrra
Are you ordering them all to move at once or each one spereatly? Also, is this through a trigger or just in a normal game?
08-21-2004, 08:00 PM#3
Ez8
I'm creating them using the "create units for player... in region..." action.

To move them, i use "unit enters a region... order triggering units to attack move to..."

So to answer your question, I guess I am asking all of them to move at once, and I am moving them via triggers.

How do other maps do it?

Their spawns move along together in a mob nicely, without filing into a line and bumping into each other.
08-21-2004, 09:14 PM#4
Shimrra
Have you tried creating each unit individually with a slight pause between them? This would cause them to be slightly behind th previous one.
08-21-2004, 10:46 PM#5
Milkman
Do a loop and in the loop, order create 1 unit at random place in spawnregion and order the last created unit to move. This works fine for me.
08-22-2004, 03:37 AM#6
Ez8
Quote:
Originally Posted by Milkman
Do a loop and in the loop, order create 1 unit at random place in spawnregion and order the last created unit to move. This works fine for me.

But I have different units spawning at the same time.

Maybe it's gotta do with unit formation or something?
08-22-2004, 03:40 AM#7
Ez8
Quote:
Originally Posted by Shimrra
Have you tried creating each unit individually with a slight pause between them? This would cause them to be slightly behind th previous one.

Even if I did that, they'd all walk in a line.

The problem is that they are walking in a line, like a train, instead of walking together like a mob. It's like all of them wants to follows the exact same path, instead of having a path of their own.
08-22-2004, 04:52 AM#8
SpadeZ
Yes i believe this has to do with unit formation.

Try adding the units created into unit groups then order the unit group to attack-move to loc, rather than pick created unit and individually attack-moving.

e.g.

Note: Let SpawnFormation be a "unit group" variable with no array and the initial value as "none"
Code:
[b]Actions[/b]
    Unit - Create 3 Footman for Player 1 (Red) at (Center of [u]Region 000[/u] <gen>) facing Default building facing degrees
    Unit Group - Add all units of (Last created unit group) to SpawnFormation
    Unit - Create 4 Rifleman for Player 1 (Red) at (Center of [u]Region 000[/u] <gen>) facing Default building facing degrees
    Unit Group - Add all units of (Last created unit group) to SpawnFormation
    Unit Group - Order SpawnFormation to Attack-Move To (Center of [u]Region 001[/u] <gen>)

Hope this helps and works.
08-22-2004, 05:33 AM#9
Ninja73
just have it create all the units at once that u need, then order them to move to random point in region so they all go together and make sure 2 make the region big.
08-22-2004, 05:38 AM#10
SpadeZ
Quote:
Originally Posted by Ninja73
just have it create all the units at once that u need, then order them to move to random point in region so they all go together and make sure 2 make the region big.

You didnt read my post above and also Ez8's post which was
Quote:
Originally Posted by Ez8
But I have different units spawning at the same time.

You cannot create different unit types at once, only one after the other.

08-22-2004, 09:01 AM#11
Ez8
Quote:
Originally Posted by SpadeZ
Yes i believe this has to do with unit formation.

Try adding the units created into unit groups then order the unit group to attack-move to loc, rather than pick created unit and individually attack-moving.

e.g.

Note: Let SpawnFormation be a "unit group" variable with no array and the initial value as "none"
Code:
[b]Actions[/b]
    Unit - Create 3 Footman for Player 1 (Red) at (Center of [u]Region 000[/u] <gen>) facing Default building facing degrees
    Unit Group - Add all units of (Last created unit group) to SpawnFormation
    Unit - Create 4 Rifleman for Player 1 (Red) at (Center of [u]Region 000[/u] <gen>) facing Default building facing degrees
    Unit Group - Add all units of (Last created unit group) to SpawnFormation
    Unit Group - Order SpawnFormation to Attack-Move To (Center of [u]Region 001[/u] <gen>)

Hope this helps and works.



Sounds promising. I'll try that, and see if it works. Is there a specific trigger that can enforce formation? So that spawns will try to stay in formation when they move.
08-22-2004, 09:16 AM#12
Anitarf
When you use the unit group move action, it will be a formation movement by default. The only problem with this action is that it is only capable of moving around groups of 12 units or less (in the same way as you can only select 12 units maximum.)
08-22-2004, 10:57 AM#13
SpadeZ
nice to see its right, but yea, what anitarf said was pretty logical. Because normall ingame only 12 units could be put in one formation. I'm not sure if there is a formation action, but if there was it'll make life alot easier.
08-22-2004, 06:49 PM#14
Ez8
Tried exactly the method suggested here.

Now some of the spawns won't even move.

Thanks anyway.