Help, because of one warning, my blueprint "cast to" is being deleted? how can I fix this?

I am a novice developer, I tried to make the logic for selecting a flashlight and only when the variable “it on?” (flashlight selected) has the status true, the flashlight can be turned on. But I encountered 1 warning that I don’t know how to fix, and because of it my variable does not work

Hi,the warning says you didn’t connected the cast to node.so drag a line to connect it. :innocent:

and to which node to connect? if I connect somewhere, I get an error on the “cast to” node

1 Like

Have you spawned the flashlight or placed the flashlight in the level?the flashlight blueprint seems to be a pawn,now I’m not sure what you’re trying to do.so could you explain more what you want to achieve.