Quick question need help

I’m very new to ue4 If I wanted to make an action that doesn’t let my characters gun shoot unless I’m aiming how do I do that in BP(this is for multiplayer)