sentrywiz
S
sentrywiz
Hi peeps.
I have this loop that picks units from each of the active player's groups and teleports them into their own region. Have been testing it, but so far I can see that it only picks my group.... idk why. Other players (bots) have units in their groups as well, its not like their groups are empty.
Some help regarding vars (all are not null and determined on map init or when player trains a unit):
Player is a Player Array variable.
PlayerGroup is an UnitGroup Array variable.
PlayerDummyPicker is a Unit Array variable.
PlayerRegion is a Region Array variable.
Also this trigger is launched by another trigger when the round starts (timer runs out/players click ESC)
I have this loop that picks units from each of the active player's groups and teleports them into their own region. Have been testing it, but so far I can see that it only picks my group.... idk why. Other players (bots) have units in their groups as well, its not like their groups are empty.
Some help regarding vars (all are not null and determined on map init or when player trains a unit):
Player is a Player Array variable.
PlayerGroup is an UnitGroup Array variable.
PlayerDummyPicker is a Unit Array variable.
PlayerRegion is a Region Array variable.
Also this trigger is launched by another trigger when the round starts (timer runs out/players click ESC)
-
Move Player Legions
-
Events
-
Conditions
-
Actions
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Player[(Integer A)] slot status) Equal to Is playing
-
(Number of units in PlayerGroup[(Integer A)]) Greater than 0
-
-
Then - Actions
-
Game - Display to (All players) the text: (picking + ((Name of Player[(Integer A)]) + 's legion))
-
Unit - Hide Player_DummyPicker[(Integer A)]
-
Unit Group - Pick every unit in PlayerGroup[(Integer A)] and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Integer A) Less than or equal to 5
-
-
Then - Actions
-
Set tempLoc = (Center of Player_Region[(Integer A)])
-
Camera - Pan camera for Player[(Integer A)] to tempLoc over 0.00 seconds
-
Unit - Make (Picked unit) Vulnerable
-
Unit - Move (Picked unit) instantly to tempLoc, facing 90.00 degrees
-
Selection - Select PlayerGroup[(Integer A)] for Player[(Integer A)]
-
Custom script: call RemoveLocation ( udg_tempLoc )
-
-
Else - Actions
-
Set tempLoc = (Center of Player_Region[(Integer A)])
-
Camera - Pan camera for Player[(Integer A)] to tempLoc over 0.00 seconds
-
Unit - Make (Picked unit) Vulnerable
-
Unit - Move (Picked unit) instantly to tempLoc, facing 270.00 degrees
-
Selection - Select PlayerGroup[(Integer A)] for Player[(Integer A)]
-
Custom script: call RemoveLocation ( udg_tempLoc )
-
-
-
-
-
-
Else - Actions
-
-
-
-
-