hi i got a problem of lightning effects ok here is the trigger
-
problem
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to I dont know
-
Actions
- Set ang = 0.00
- Set dist = 500.00
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
- Lightning - Create a Chain Lightning - Primary lightning effect from source (Position of (Triggering unit)) to target ((Position of (Triggering unit)) offset by dist towards ang degrees)
- Unit - Create 1 Column Uryuu for Neutral Passive at ((Position of (Triggering unit)) offset by dist towards ang degrees) facing (Angle from (Position of (Last created unit)) to (Position of (Triggering unit))) degrees
- Unit - Add a 2.10 second Generic expiration timer to (Last created unit)
- Set ang = (ang + 32.00)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 400.00 of (Position of Caster_Unit) matching (((Matching unit) belongs to an enemy of (Owner of Caster_Unit)) Equal to True)) and do (Actions)
-
Loop - Actions
- Unit - Cause Caster_Unit to damage (Picked unit), dealing 5000.00 damage of attack type Spells and damage type Normal
- Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
- Special Effect - Destroy (Last created special effect)
-
Loop - Actions
- Unit - Create 1 Explozion for Neutral Passive at (Position of Caster_Unit) facing Default building facing degrees
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Set Caster_Unit = No unit
- Set ang = 0.00
-
Events