Is it possible to change the camera offset with a keybind?

Hello! I am currently working on a Third Person Shooter System and would like to know if it is possible to change the camera offset using a keybind.

I would like it so that if the player were the press a particular key for example “q” it would move the camera slightly to the left, over the player’s shoulder and if pressed again, it would shift to the right side of the screen. I just really don’t have a clue where to start.

My camera offset is currently set to (3, 0, 6) which is positioned currently to the left side of the screen. The right side of the screen in which I would like to toggle to and from is (-3, 0, 6).

1 Like

I’d check out this:

It will get you started with keyboard input, and from there, offsetting the camera with the press of a key.