• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Connecting lightning effects in units

Status
Not open for further replies.
Level 5
Joined
Apr 15, 2007
Messages
74
how can i make a chain lightning lightning affect stick on the casting unit and another unit??? make the lightning effect stick on them even though the casrer is moving.i used the lightning affect trugger to connect it to caster but it didnt work it only stayed at the point. is there another trigger that can connect it?
 
Last edited:
Level 19
Joined
May 1, 2008
Messages
1,130
use the finger of death ability
in the object editor under finger of death ability y have "grafic duration"
change that to whatever time u like and that will connect 2 units even if there moving
 
Level 25
Joined
Jun 5, 2008
Messages
2,572
Try this:
1.
  • Events Unit begins casting an ability
  • Conditions Ability being cast equal *ability*
  • Actions
    • set Spell_Target = target of ability being cast
    • set Caster = casting unit
    • set Lightning_Point1 = position of Caster
    • set Lightning_Point2 = position of Spell_Target
2.
  • Events unit finishes casting an ability
  • Conditions Ability being cast equal *ability*
  • Actions
    • lightning effect create starting at Lightning_Point1 and ending at Lightning_Point2 using Chain Lightning - Primary
    • set variable Chain_Lightning = last created lightning effect
Then:
3.
  • Events Every x seconds of game
  • Conditions
  • Actions
    • set Lightning_Point1 = position of Caster
    • set Lightning_Point2 = position of Spell_Target
    • Lightning effect destroy Chain_Lightning
    • Lightning effect create starting at Lightning_Point1 and ending at Lightning_Point2 using Chain Lightning - Primary
    • Lightning
Tell me if it works.
First try raid1000's way.
 
Status
Not open for further replies.
Top