Basically i am trying to make a trigger that creates units at a location and then orders then to an area. Now i know how to do it, but once thier created, and orderd to attack-move thier. They double back to the creation point. I want them to move thier and enage anything on the way thier and once thier stay put and wait for an enemy to come.
Code:
Castle Defense Movement
Events
Unit - A unit enters Castle Defense Spawn <gen>
Conditions
(Owner of (Triggering unit)) Equal to Player 9 (Gray)
Actions
Unit - Order (Triggering unit) to Attack-Move To (Center of Attack Center <gen>)
Code:
Castle Defenders Wave 1
Events
Map initialization
Conditions
Victory Equal to False
Actions
If (Victory Equal to True) then do (Skip remaining actions) else do (Do nothing)
Unit - Create 3 Footman for Player 9 (Gray) at (Random point in Castle Defense Spawn <gen>) facing Default building facing degrees
Unit - Create 2 Priest for Player 9 (Gray) at (Random point in Castle Defense Spawn <gen>) facing Default building facing degrees