Hey guys,
I’m relatively new to to Unreal, but I love it so far! I have a question about the best way to interact with objects in the world (collectible, doors, etc). I tried to search for an answer, but found a lot of conflicting advice.
So I want my interact key (E) to do several things:
- Collect collectable objects in the world.
- Consume consumable directly in world
- Interact with environment (open doors/etc)
- maybe more?
For example, I have a “battery” that you can pick up and store. I tried to place an InputAction In the “Battery” blueprint itself, but the keystroke wouldn’t fire. To solve this, I put this in my character:

Then I have an EventTick listen for when the “InteractTrue” variable is true. Then I gate that including the batteries collision geometry.
This works well for the batteries (since the instance is destroyed on pickup), but when I tried to use the same setup for something toggle-able (like a door), The door opens and closes randomly. I figured out it’s because when I press the E button, It fires multiple times. If it fires an even number of times, the door does nothing. If it fires an odd number of times, the door opens/closes.
In this example the door itself has it’s toggle switch stored in the EventGraph of the map, and when I use “InputAction Interact” there, it works just fine.
Is the EventTick the problem? Is there something else better to use to have my Interact key work more globally? Which part of the Interaction should you store in the character, and which in the object he’s interacting with? Any advice that would point me to the accurate way to do this would be extremely awesome.
Thank you guys so much!

