Question on picking up an item and adding it to the camera

Hi there, I’ve recently been learning Godot and have a question on how to get an item you pick up to appear on your player’s camera. (i.e. a flashlight)

This is the code I have attached to my flashlight which is what you pick up.

This is the code attached to the actual light source connected to the player.

Any and all help is appreciated!

What is the problem?

I wanted to know how I could get my flashlight to show on my player camera after picking it up.

1 Like

I managed to get it working.

I just had to call the flashlight_picked variable in the ready function and make it invisible but still have the flashlight attached to the player. Then I could just make it visible in the interact function.

1 Like