This is driving me insane, a unit (Pride) casts an ability, and unit(Summoner) spawns somewhere on the map, this works fine.
Then, you move the unit (Summoner) onto a circle and a unit is created at your start location. Also works fine, now, near your start location is a unit (Portal) with the "waygate ability".
I am trying to get the waygate destination to the casting unit (Pride).
What is wrong with this trigger?
Then, you move the unit (Summoner) onto a circle and a unit is created at your start location. Also works fine, now, near your start location is a unit (Portal) with the "waygate ability".
I am trying to get the waygate destination to the casting unit (Pride).
What is wrong with this trigger?
-
HumanSummoner
-
Events
- Unit - A unit Begins casting an ability
- Conditions
-
Events
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Triggering unit)) Equal to Pride
-
Then - Actions
- Unit - Create 1 Human Summoner for (Owner of (Triggering unit)) at (Center of HumanSSpawn <gen>) facing Default building facing degrees
- Camera - Pan camera as necessary for (Owner of (Triggering unit)) to (Center of HumanSSpawn <gen>) over 1.00 seconds
-
Unit Group - Pick every unit in (Units owned by (Owner of (Casting unit)) of type Portal) and do (Actions)
-
Loop - Actions
- Neutral Building - Set (Picked unit) destination to (Position of (Casting unit))
-
Loop - Actions
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Last edited: