# Lightning Effect

**URL:** <https://forums.unrealengine.com/t/lightning-effect/311801>\
**Category:** Rendering\
**Tags:** beam, effect, particle-systems, lightning, unreal-engine, question\
**Created:** [March 20, 2015, 1:57am UTC](https://forums.unrealengine.com/t/lightning-effect/311801 "2015-03-20T01:57:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carnazio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Carnazio](https://forums.unrealengine.com/u/Carnazio)\
**Post date:** [March 20, 2015, 1:57am UTC](https://forums.unrealengine.com/t/lightning-effect/311801/1 "2015-03-20T01:57:52Z")

</div>

Hi everyone,  
I’m trying to create a lightning effect similar to the electrocute spell in Diablo3 (reference:**[video](https://www.youtube.com/watch?v=1RFu6TEiJIw)** ) but I’m not sure how to achieve that result. I’ve been searching all over the web for tutorials or even HINTS and the only thread i found is **[this one](https://answers.unrealengine.com/questions/78456/undefined.html)** and its not really the result I’m looking for.  
I’m using a beam emitter right now and the result isn’t that bad (**[RESULT.gif](https://dl.dropboxusercontent.com/u/782637/Lightning.gif)**) but the lightning isn’t forking since it’s a straight line. I tried to use the SubUV index but its not working at all with the beam type (i thought i could make a sequence of tiling-textured and animated planes) so now I’m back to square one. Is there any way i can achieve that? Is there any way i can make a beam fork?

Thanks in advance for any advice you might give me!

edit: **[This](http://puu.sh/gHz8W/050fd6fe95.gif)** is another result achieved randomizing the target position, which again isn’t bad but it’s not forking!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_11d28c921](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_11d28c921](https://forums.unrealengine.com/u/anonymous_user_11d28c921)\
**Post date:** [September 21, 2015, 7:22pm UTC](https://forums.unrealengine.com/t/lightning-effect/311801/2 "2015-09-21T19:22:56Z")

</div>

I would do it like this. There might be a more efficient solution:  
You could set up a beam emitter that goes from your character to the target. When it reached the target, you check, if there are any other possible targets in range. If so, create a beam emitter from that one target to the target number two. If not, just stop, or make the beam fade away smoothly. Repeat this step.
