Opening and Closing Doors with VR HTC Controllers by touch of a button.


So I’ve been trying to get a door to open and close by the trigger on the Vive controllers, in VR. So far, I have managed to get the door to close and stay closed by pressing the trigger but to allow the door to open again I can’t find a way of doing it on the same button ie the trigger button, so I have had to make opening the door on the grip button. How can I have the trigger button operate both opening and closing of the door.
Thank in advance.