i just felt inclined to make this example now since in mmf2 it's so easy.
Anyhow, i created the code so that it would be very reusable, therefor i put almost all of the code in the behaviour of the objects, so you can just copy them to your game if you want to use this. The only code in the frame is for implementation which is different for each game.
anyway. It features 1 or more lasers which instantly hit the target and stop at any obstacles before it.
you may use whatever you want from this without any credits.