Hi.
Pickupweaponevent is not connected to a state, there for its giving an error.
maybe its better to handle the animation inside the animation with for example a int paramater.
if int 0 no weapon idle
if int 1 melee idle
if int 2 rifle idle
in PM you can do SetAnimatorInt to set the value