switch between multiple cameras in vehicle blueprint

Im trying to get my camera to switch between multiple cine cameras in the vehicle blueprint, but it’s not working.

I’ve set up a function for the cameras and attached it to the InputAction Switchcamera node:

I’ve tried a few different functions, the first is a variation of something I found on a video, but doesn’t work:

And this one was just a stab in the dark:

No cycling is occurring when I press the switch camera button, TAB, defined in the project settings.

Try it like this:

Image from Gyazo

So you’re looping through the array; then getting the fraction of ( the current index + 1) divided by the array’s length to retrieve the next camera?
That’s perfect, thank you!