- Joined
- Sep 26, 2009
- Messages
- 9,468
Trying to figure out why this lightning effect gets destroyed most of the time but frequently does not get destroyed... I am new to Hash Tables so sorry if this seems noobish
-
dt BK Attacks C
-
Actions
- Special Effect - Create a special effect attached to the origin of TargetHero using Abilities\Spells\Undead\ReplenishMana\SpiritTouchTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Set PointTempArray[1] = (Position of TargetHero)
- Set PointTempArray[2] = (Position of (Attacking unit))
- Lightning - Create a Finger of Death lightning effect from source PointTempArray[1] to target PointTempArray[2]
- Lightning - Change color of (Last created lightning effect) to (0.20 1.00 0.20) with 0.80 alpha
- Custom script: call RemoveLocation( udg_PointTempArray[1] )
- Custom script: call RemoveLocation( udg_PointTempArray[2] )
- Hashtable - Save Handle Of(Last created lightning effect) as (Key (This trigger)) of (Key (Owner of (Attacking unit))) in KnightHash
- Wait 0.75 seconds
- Lightning - Destroy (Load (Key (This trigger)) of (Key (Owner of (Attacking unit))) in KnightHash)
-
Actions