Lightning

by Rotem12
generates lines, beams or lightning bolts
ID:2012377
 
Version 1.04 adds a mode that changes how segments are placed on the map, instead of placing segments on the map they will be added as overlays, this greatly improves CPU costs however at certain long distances it may cause visibility problems.

This change also makes it incredibly easy to rotate a lightning bolt by just changing one object's transform (or via Rotate() proc).

I would recommend making use of this to further save CPU if you need to, you can also clone bolts generated with appearance variable and avoid going through the math of generating a new bolt. BYOND became quite handy.