- Joined
- Jul 18, 2004
- Messages
- 1,862
Okay, I'm making this spell which makes a dummy unit target an enemy unit in range with a modified Storm Bolt.
My problem is that this happens about two or three times in a row, and each time, a newly created dummy unit will target the same! friggin! unit! in range! Never another one, oooh no. Always the same one.
How do I force these units, which're created one after another with intervals of one second, to target ~random~ units, rather then constantly the same one?
What I have:
My problem is that this happens about two or three times in a row, and each time, a newly created dummy unit will target the same! friggin! unit! in range! Never another one, oooh no. Always the same one.
How do I force these units, which're created one after another with intervals of one second, to target ~random~ units, rather then constantly the same one?
What I have:
Code:
Unit Group - Pick every unit in (Units in (Region centered at (Position of (Entering unit)) with size (900.00, 900.00)) matching (((Matching unit) belongs to an enemy of (Owner of (Entering unit))) Equal to True)) and do (Unit - Order (Entering unit) to Human Mountain King - Storm Bolt (Picked unit))