• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to remove lightning effects

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,765
Unless i did something wrong?

  • Ice Sting Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Ice Sting (|cffFFcc00I|r) T1 ELEM
    • Actions
      • Custom script: local lightning lite
      • Custom script: local location l
      • Custom script: local location l2
      • Set TempLoc = (Position of (Target unit of ability being cast))
      • Set TempLoc2 = (Position of (Casting unit))
      • Custom script: set l = udg_TempLoc
      • Custom script: set l2 = udg_TempLoc2
      • Unit - Create 1 Ice Sting Dummy for (Triggering player) at TempLoc facing Default building facing degrees
      • Unit - Order (Last created unit) to Undead Lich - Frost Nova (Target unit of ability being cast)
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing ((20.00 + (10.00 x (Real((Level of Ice Sting (|cffFFcc00I|r) T1 ELEM for (Casting unit)))))) x (Real((Intelligence of (Casting unit) (Include bonuses))))) damage of attack type Spells and damage type Normal
      • Special Effect - Create a special effect at TempLoc using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
      • Special Effect - Destroy (Last created special effect)
      • Custom script: set lite = GetLastCreatedLightningBJ()
      • Lightning - Create a Mana Burn lightning effect from source TempLoc to target TempLoc2
      • Lightning - Change color of (Last created lightning effect) to (1.00 1.00 0.00) with 1.00 alpha
      • Lightning - Destroy TempLightning
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Custom script: call RemoveLocation(udg_TempLoc2)
      • Wait 1.25 seconds
      • Custom script: set udg_TempLightning = lite
      • Lightning - Move TempLightning to source TempLoc and target TempLoc
e/ erm i set lite before it was created not after
 
Status
Not open for further replies.
Top