San-D
New Member
- Reaction score
- 15
Code:
Untitled Trigger 001
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set p[2] = (Random point in region[1])
Unit - Create 1 Dummy for Player 1 (Red) at p[2] facing Default building facing degrees
Unit Group - Pick every unit in (Units in region[1]) and do (Actions)
Loop - Actions
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Picked unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Variables:
p[array] - point
region[array] - region
The basic idea of this thing is to create a lightning bolt every second from a random point. The region is 300,300. But the problem is, it only orders the first 2,3 dummies to cast the ligghtning bolt, after that they just come and go. I modified the casting range of the lightning to 99999 and it still doesnt work!
[Edit] My practice area is only enemies, so there shouldnt be a problem for picking allied units