Rotate camera without right mouse button

I have a helicopter and to control its direction I need to turn the camera. How can I make the camera rotate without pressing the right mouse button? Or is it possible to make a script that will press the right mouse button for the player?

What’s the current behavior with the right mouse button? I need a further elaboration of what is expected of the current system you’re working on.

To rotate the camera, and with it the helicopter, you need to hold down the right mouse button. I need to make it so that the right mouse button is automatically pressed, without the player’s participation, this is necessary to simplify the game

To rotate the camera you need to set the right mouse button. How can I make the camera rotate itself, as if it were in first person