| 01-04-2008, 08:07 PM | #2 |
Attacked Unit isn't anything, you'd have to use Target unit of ability being cast. Target unit of ability being cast simply becomes nothing the second you use a wait. I use a better solution for that same problem. Whenever a unit starts the effects of polymorph (or entangle or whatever abilities do this), add the unit to a global group. Have a timer that runs evert 0.50 seconds and just loops through the global group ordering them to move to center of region[value] etc. If the current order of the unit you are looping through is "move" then remove it from the group. Also be sure to make sure all your units that will be polymorphed are set to Stats - Can Flee = false, if you don't want them running every which way. |
| 01-04-2008, 08:52 PM | #3 |
Using locals makes a whole lot more sense than a global unit group. You need to store the caster and target in local unit variables, then you can use waits with glee. |
| 01-04-2008, 10:39 PM | #4 |
Thanks rain, that worked great! As for the "unit is attacked" that was a mistake that got copied over from another trigger. |
