I was wondering if there was a more efficient way of creating a trigger like this. Or if anyone could see a potential leak or problem in it. It creates an effect that circles the unit. When finished it will damage units the spinner comes into contact with; I'm unsure of the most efficient way to do this. Right now I'd likely pick units within range of temp_point. I might make the loop run less often but I'm really not sure right now.
I've attached a couple images of it also since my description is likely terrible.
I've attached a couple images of it also since my description is likely terrible.
-
Spin Me
-
Events
- Time - Every 0.05 seconds of game time
- Conditions
-
Actions
- Set Spin_Real = (Spin_Real + 10.00)
-
For each (Integer A) from 1 to 8, do (Actions)
-
Loop - Actions
- Set Temp_Real = (Temp_Real + 15.00)
- Set Temp_Point = ((Position of Guy) offset by (50.00 x (Real((Integer A)))) towards (Spin_Real - Temp_Real) degrees)
- Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Items\AIco\CrownOfCmndTarget.mdl
- Special Effect - Destroy (Last created special effect)
-
Loop - Actions
- Custom script: set udg_Temp_Real = 0.00
-
Events