Ok. This ability was working in the previous version. Nothing at all has changed in this trigger from the previous. I've tried turning off ALL triggers yet this still won't work.
For some reason it won't Add the last created unit to that unit group. It displays no unit name. Any ideas why Add Unit would stop working?
Edit: Every unit is given a unique custom value. I've double checked the unit to make sure it is staying the same and it is.
For some reason it won't Add the last created unit to that unit group. It displays no unit name. Any ideas why Add Unit would stop working?
Edit: Every unit is given a unique custom value. I've double checked the unit to make sure it is staying the same and it is.
Trigger:
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Ability being cast) Equal to Range
- Then - Actions
- Set Temp_Point = (Position of (Casting unit))
- For each (Integer A) from 1 to 10, do (Actions)
- Loop - Actions
- Set Temp_Point_2 = (Temp_Point offset by 420.00 towards (36.00 x (Real((Integer A)))) degrees)
- Unit - Create 1 Range Dummy for (Owner of (Casting unit)) at Temp_Point_2 facing Default building facing degrees
- Animation - Change (Last created unit) flying height to 325.00 at 108.33
- Unit Group - Add (Last created unit) to Units_Range[(Custom value of (Casting unit))]
- Custom script: call RemoveLocation(udg_Temp_Point_2)
- Loop - Actions
- Unit Group - Pick every unit in Units_Range[(Custom value of (Casting unit))] and do (Actions)
- Loop - Actions
- Game - Display to (All players) the text: (Name of (Picked unit))
- Loop - Actions
- Custom script: call RemoveLocation(udg_Temp_Point)
- Else - Actions
- If - Conditions