Is there a way to create electricity with particles??

Is there a way of creating lightning/electricity with a particle simulation?? I’m wanting to create a sort of explosion of lightning that scales on the X & Y but not as much on the Z. Like a unit just spawning in the game or something like that. Any help would be amazing! Thank you ahead of time!

How can I do that though? I have no idea what to do to get that effect.