Well I'm making a maze and used this trigger I found on a tutorial.
-
Events
- Time - Every 0.05 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
- Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at (Position of (Picked unit))) Equal to Barrens - Desert
-
Then - Actions
- Unit - Move (Picked unit) instantly to (Center of Region 017 <gen>)
-
Else - Actions
- Custom script: call DestroyGroup(GetLastCreatedGroup())
-
If - Conditions
-
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)