How to make a door open when my character picks up the key for that door

I answered a similar question elsewhere: How to use keycard to unlock door? - Programming & Scripting - Epic Developer Community Forums