Which part does not work here?

Godot Version

4.5.1

Question

I’m only starting to get into programming, sorry if this is a stupid question. I wrote a simple code to test some things. An object should be detected by a player, when it does it sets a variable and depending on if its true or false it should do different things, except it doesn’t work.

Here is my code:


It detects the camera and prints “seen” and “not seen”, however the checkifseen function doesnt do anything, no matter what i put in it. Why?

Do you call the checkifseen method anywhere? If not, that’s why it doesn’t output anything!

1 Like

Hello!

Do you call the “checkifseen” function anywhere? If not, I suggest putting it in those signal functions for a test.

2 Likes