Why is boolean always false?

I’m really new to unreal engine but basically, i want to attach my character to an object(cube) when i press E and i’m on the overlap range , but when the way i’m doing looks like the E is pressed boolean to check if E is being pressed is always false.

OBS: i tried with a event tick aswell(didn’t to anything to the delta seconds though, didn’t know how to), also tried with connecting the SET to the branch

Why would this not work? Also, the way i want this is that i can press E whenever i want on the overlap range, not enter the range with the button pressed.

The Event ActorBeginOverlap fires only at the beginning of the overlap. So this is not the right event to use in your case. You can just connect it up to your Input Event “E”. Because that’s when you want it to happen. Also you don’t need that boolean.(unless you’re using it for something else). You can use “IsOverlapping Actor” to check if the actor is overlapping another actor(player character).

If you’re still in doubt whether your boolean is false or not you can put a print string in there and connect it up to the boolean :wink: