Status
Not open for further replies.

#### GangSpear

Level 13
How can i create 18 lightning effect and link the 18 lightning effect to the 18 lightning dummy?

#### Bannar

Level 26
For creating lightning effects you need at first 2 locistion, where effect begins and where it ends.

• Lightning - Create a Chain Lightning - Primary lightning effect from source Point1 to target Point2
Remember to remove location leaks latter.

If you want to link lightning effect with dummies, create a loop that while creating 18 dummies, sets Point2 to position of last created unit (since I'm sure Point1 is constnt in cause of unit who summons whole effect), creates ligthning effect, and removes location leak.

Last edited:

#### GangSpear

Level 13
Do this work?
• For each (Integer A) from 1 to 18, do (Actions)
• Loop - Actions
• Unit - Create 1 Lightning_Dummy for (Owner of LC_Caster[LC_Index2]) at (LC_TargetPoint[LC_Index2] offset by 400.00 towards ((Real((Integer A))) x (360.00 / 18.00)) degrees) facing LC_TargetPoint[LC_Index2]
• Set LC_Dummy2[LC_Index2] = (Last created unit)
• Unit Group - Add LC_Dummy2[LC_Index2] to LC_Group2[LC_Index2]
• Unit - Add a 8.00 second Generic expiration timer to (Last created unit)
• Set LC_DummyPoint[LC_Index2] = (Position of LC_Dummy[LC_Index2])
• Set LC_UnitPoint[LC_Index2] = (Position of LC_Dummy2[LC_Index2])
• Lightning - Create a Chain Lightning - Primary lightning effect from source LC_DummyPoint[LC_Index2] to target LC_UnitPoint[LC_Index2]
• Set LC_LightningEffect[LC_Index2] = (Last created lightning effect)
• Custom script: call RemoveLocation(udg_LC_UnitPoint[udg_LC_Index2])
• Custom script: call RemoveLocation(udg_LC_DummyPoint[udg_LC_Index2])

#### x3GlikE

Level 11
Yeh that works..^

#### GangSpear

Level 13
But i can't destroy the lightning effect.
• For each (Integer A) from 1 to 18, do (Actions)
• Loop - Actions
• Lightning - Destroy LC_LightningEffect[LC_IndexLoop]
• Lightning - Destroy LC_LightningEffect[LC_IndexLoop]
Both not work

#### Bannar

Level 26
• Set LC_LightningEffect[LC_Index2] = (Last created lightning effect)
LC_Index2 doesn't exist, and since you create them in loop (with Integer A) better use:

• Set LC_LightningEffect[Integer A] = (Last created lightning effect)
With destroying situation is the same, you have to use (Integer A) as index.
• For each (Integer A) from 1 to 18, do (Actions)
• Loop - Actions
• Lightning - Destroy LC_LightningEffect[Integer A]

#### GangSpear

Level 13
But does it can use on MUI?]
EDIT: I tried,it doesn't remove then multi unit casted.
EDIT 2: How can i set it into MUI?

Bump！

Last edited by a moderator:
Status
Not open for further replies.

Replies
7
Views
1K
Replies
1
Views
631
Replies
10
Views
1K
Replies
8
Views
965
Replies
3
Views
581