I have a small object which changes the colour of my crosshair when looking at it. I would like to add an input button (Q Key) which only works when looking at the object. I would then like the camera to change to a different camera when the button is pressed. How would I implement this into the blueprint below?
I also want it so that when the Q button is pressed again it returns to the previous location the player was
It’s a bit of a vague description about the camera switch. But the rest is pretty standard first person interaction.
You already have the line trace which changes the cursor color, when the player presses the key, just use the same line trace code to send a blueprint interface message to the traced object, that’s the easiest way to make sure that object gets the message.
So literally just use this? Or do I need to copy paste the rest of the blueprint connection from the line trace?
All the code ![]()

Okay but how can I change the camera to a camera in the level blueprint when a button is pressed? and then have it return to the player camera when button is pressed again
You need to put the camera in the level into a blueprint. Then you can use
to change cameras. ( This code goes in the player ).
What should I do exactly to put the camera in the level into a blueprint? How do I do that? and whats the function that I set for it?
And are you sure I just use that first blueprint and thats it? I dont do anything else?










