• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Unanimated lightning effect -_-

Status
Not open for further replies.
I am not sure you know how a lightning effect works.

1. They are flat textures.
2. They get stretched from source to target point. If you do not want that/minimize the effect, you have to split it up into multiple parts.
3. Their texture is additive. Dark colors make them transparent.

So I end up with something like

QJViI-jTiRYNOds8rYStW1MHM8OVJtnQ-cGGclkbUVE
 
You are tired of basic maths? May as well quit mapmaking.

Independent from if you use a lightning bolt or a model, it will be only one chain element/a fixed number. Lightning bolts are not attached to units and therefore will not automatically move with them.

You just have to divide the distance between source and target by the length of an element, create as many elements and move them with polar offset from caster to target in offsets of running index * dist per element. Repeat this periodically.
 
Status
Not open for further replies.
Back
Top