Custom Weapon Fire Events

Hi all!

I wanted to ask a thing about changing the default behaviour of a weapon (In this case the melee animation) to be idle and just open the Remote Keypad Code Input Screen?

Is this possible? And where do i have to look out for setting this?

Any help is highly appreciated!