AnD4D The function applies for only one laser, I believe it has a laser UID as a parameter. so if you want it to affect all the lasers, use a for each loop, and call the function with laser.uid inside the loop.
Putting a for each inside the function will work too, but you'll lose the ability to use it for just one laser at a time.