[SOLVED] How to switch between multiple cameras

I want to switch my camera but renderer.render(scene, mycam) doesn’t work. I remember using a simple function, which isn’t a
sub-function. Is anyone in knowledge of the function?

Edit: It is player.setCamera(this)