Hey, im really new to WE but me and a friend is doing a custom TD and there is alot off errors along the way, but this one i can figure out.
So we have for now 2 spawning areas top and left, map is a cube shape.
Left spawn code
spawn1 left
Events
Time - Elapsed game time is 30.00 seconds
Conditions
Actions
Unit - Create 1 Peasant for Player 12 (Brown) at (Center of red left <gen>) facing (Center of red right goal <gen>)
left to middle region
move middle
Events
Unit - A unit enters red left <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Unit - Order (Entering unit) to Move To (Center of red middle <gen>)
middle to right
move middle to end
Events
Unit - A unit enters red middle <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Unit - Order (Entering unit) to Move To (Center of red right goal <gen>)
and did the same for top to bottom but now every single spawn goes to the bottom region after hitting middle region. And for the top code i have when unit enters middle move to center of bottom region.
So we have for now 2 spawning areas top and left, map is a cube shape.
Left spawn code
spawn1 left
Events
Time - Elapsed game time is 30.00 seconds
Conditions
Actions
Unit - Create 1 Peasant for Player 12 (Brown) at (Center of red left <gen>) facing (Center of red right goal <gen>)
left to middle region
move middle
Events
Unit - A unit enters red left <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Unit - Order (Entering unit) to Move To (Center of red middle <gen>)
middle to right
move middle to end
Events
Unit - A unit enters red middle <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Unit - Order (Entering unit) to Move To (Center of red right goal <gen>)
and did the same for top to bottom but now every single spawn goes to the bottom region after hitting middle region. And for the top code i have when unit enters middle move to center of bottom region.