Creating a door

How would I make it so if I am a certain distance from an entity and the E key is pressed I set the rotation of that entity. I already have a timer to close it so that is all done.

Hi @Mason_Rocchio,

Check this post: How to make a door open when player touches door? - #2 by Leonidas