Need help with XR input and socket interactor

im trying to make a gun and i want it so if your holding the gun and you push a button on the controller thats holding the gun the mag will release. what i need help with is dropping the mag from the socket interactor and also telling when the button is pushed

To make the mag drop from the gun, try using these on the Socket Interactor

socketInteractor.allowSelect = false;

Or

socketInteractor.enableInteractions = false

Then, wait a couple seconds and re-enable these.