Lightning arc effect with moving source/target possible?

Do I have to do anything special to make it work, how can I specify the target mesh/actor? Thanks for your effort!