Ah, found the Repeat Interval field on the Raycast action, so I don't need the self-triggering event.
Even so it's not working for some reason. Although I can't see why. I've switched on the debug view of the raycast and can't see the beam leaving the camera. So I suspect I've done something fundamentally stupid.