-Brainiac-
New Member
- Reaction score
- 7
I have 10 Regions,
NorthSpawn
North move 1
North move 2
North move 3
North move 4
South move 4
South move 3
South move 2
South move 1
SouthSpawn
I got the following triggers:
Event
Unit - A unit enters NorthSpawn
Condition:
((Triggering unit) belongs to an ally of Player 1 (Red)) Equal to True
Actions
Set TempPoint = (Center of North move 1)
Unit - Order (triggering unit) to Attack-Move to TempPoint
Custom script: call RemoveLocation (udg_TempPoint)
(For the Unit - Order (triggering unit) Action I also tried Entering unit with no succes)
The point is that from North and south units will spawn and follow the path (e.g.) from the South spawn to south 4/north 4 to north spawn.
and North spawn to north 4/south4 to south spawn. The regions are used dubble by the triggers.
Got Red,Blue,Teal,Purple North(Team 1) and Yellow,Orange,Green,Pink South (Team 2)
So if a unit uses region:"North move 1" it walkes back to North spawn because the South trigger orders the unit to do that.
Then I put in the condition that if the unit was an ally of red he would only walk south, and not north because he would only walk north if he was an ally of yellow.
Somehow this doesn't work...
Got the following variables:
UnitGroup = Player Group (Empty Player Group)
Unitgroup = Player Group (Empty Player Group)
At Start I got the actions:
set UnitGroup = (All allies of Player 1 (Red))
set Unitgroup = (All allies of Player 5 (Yellow))
So those two are in a different trigger, that could be the problem or I got wrong conditions..?
Anyway wrote this down a little confusing but I hope you understand!
Regards
NorthSpawn
North move 1
North move 2
North move 3
North move 4
South move 4
South move 3
South move 2
South move 1
SouthSpawn
I got the following triggers:
Event
Unit - A unit enters NorthSpawn
Condition:
((Triggering unit) belongs to an ally of Player 1 (Red)) Equal to True
Actions
Set TempPoint = (Center of North move 1)
Unit - Order (triggering unit) to Attack-Move to TempPoint
Custom script: call RemoveLocation (udg_TempPoint)
(For the Unit - Order (triggering unit) Action I also tried Entering unit with no succes)
The point is that from North and south units will spawn and follow the path (e.g.) from the South spawn to south 4/north 4 to north spawn.
and North spawn to north 4/south4 to south spawn. The regions are used dubble by the triggers.
Got Red,Blue,Teal,Purple North(Team 1) and Yellow,Orange,Green,Pink South (Team 2)
So if a unit uses region:"North move 1" it walkes back to North spawn because the South trigger orders the unit to do that.
Then I put in the condition that if the unit was an ally of red he would only walk south, and not north because he would only walk north if he was an ally of yellow.
Somehow this doesn't work...
Got the following variables:
UnitGroup = Player Group (Empty Player Group)
Unitgroup = Player Group (Empty Player Group)
At Start I got the actions:
set UnitGroup = (All allies of Player 1 (Red))
set Unitgroup = (All allies of Player 5 (Yellow))
So those two are in a different trigger, that could be the problem or I got wrong conditions..?
Anyway wrote this down a little confusing but I hope you understand!
Regards