Pickup an actor when holding a key

The most easiest way is to make a new BP Actor.

  1. Add a StaticMesh of the item you want to pick up.
  2. Add a Box Collision, make it nice back so you can stand in it.
  3. Then in the Collision, on EventOnOverlap from the Overlap Actor make a branch to see if its equal to the player, if true, cast to the player (use the Overlap Actor pin), and then perform your event on your player (i.e. enable HasKey boolean).
  4. Then DestroyActor.

That’s pretty much it.