How do I make multiple units spawn and each go to a different point? I've read other threads similar to this, but there is one difference. The other threads talk about only one spawn point for units. I have four spawn points and I want each spawned unit from each spawn point to go attack another point. I'm kind of bad with triggers, so help is appreciated.
I'm not great with triggers myself, but one solution may be
Add a region at each spawn point, and have "when unit enters region", order it to attack the point you want. Not sure if spawning units in a region counts as entering, but it should
Create four spawn points and create four destination points. Have four triggers, each of which have an appropriate pair of points consisting of one spawn point and one destination point.
That's all there is to it, unless I'm missing what you're saying entirely?
I have no idea what your asking....
Create variable: Spawn Point
Create variable: Move points with an array of 4
For each integer I from 1-4 increment 1
Actions:
If Then Else
Then:
Create 1 [x/unit] at point [Spawn Point]
issue order to Last Created Unit to (order targetting point) move to MovePoints[I]
That trigger set up makes 4 units, and MOVES each one to a different Point.
You can put a wait action at the end of the if then else to create a wait between each spawn
You are very vague with your attack stuff so ill just give you the spawning triggers <3
I got this off someone on the official SC mapping forum I think, but it works...
First, create one point for each area of interest, IE, your spawn area, and your target areas using the points tab of the editor's map window.
Then access the trigger editor, and do the following. ("X" or something like "VarX" is used to denote where you do something yourself...)
Trigger01
- Events
X
- Local Variables
"VarX" = (Empty Unit Group) <Unit Group>
- Actions ..... create unit with default facing
Unit - Create X unit type for player X at PointX with default facing (no options) ...... add unit to unit group. Select the "variable" tab under the "unit group" option and select our local variable, VarX, we made earlier.
Unit Group - add (last created unit) to "VarX" .......Issue order to unit group
Unit - Order all units in VarX to (....
-Group VarX
-Order X
-Ability X (more or attack I presume you'll use) .......Remove all Units from Unit Group (Good practice I've been told)
How do I make multiple units spawn and each go to a different point? I've read other threads similar to this, but there is one difference. The other threads talk about only one spawn point for units. I have four spawn points and I want each spawned unit from each spawn point to go attack another point. I'm kind of bad with triggers, so help is appreciated.
I'm not great with triggers myself, but one solution may be
Add a region at each spawn point, and have "when unit enters region", order it to attack the point you want. Not sure if spawning units in a region counts as entering, but it should
Create four spawn points and create four destination points. Have four triggers, each of which have an appropriate pair of points consisting of one spawn point and one destination point.
That's all there is to it, unless I'm missing what you're saying entirely?
@ChromiumBoy: Go
i think he only wants 1 spawn point and more destination points... dont have time to open the editor so cant think of something.
I have no idea what your asking.... Create variable: Spawn Point Create variable: Move points with an array of 4
For each integer I from 1-4 increment 1 Actions:
If Then Else
Then:
Create 1 [x/unit] at point [Spawn Point]
issue order to Last Created Unit to (order targetting point) move to MovePoints[I]
That trigger set up makes 4 units, and MOVES each one to a different Point. You can put a wait action at the end of the if then else to create a wait between each spawn
You are very vague with your attack stuff so ill just give you the spawning triggers <3
much love bru
I got this off someone on the official SC mapping forum I think, but it works...
First, create one point for each area of interest, IE, your spawn area, and your target areas using the points tab of the editor's map window.
Then access the trigger editor, and do the following. ("X" or something like "VarX" is used to denote where you do something yourself...)
Trigger01
- Events
X
- Local Variables
"VarX" = (Empty Unit Group) <Unit Group>
- Actions
..... create unit with default facing
Unit - Create X unit type for player X at PointX with default facing (no options)
...... add unit to unit group. Select the "variable" tab under the "unit group" option and select our local variable, VarX, we made earlier.
Unit Group - add (last created unit) to "VarX"
.......Issue order to unit group
Unit - Order all units in VarX to (....
-Group VarX
-Order X
-Ability X (more or attack I presume you'll use)
.......Remove all Units from Unit Group (Good practice I've been told)
Hope that's comprehensive enough.
problem is that that means they all spawn at the same time, wait commNds make it a lil prettier on the eyes