Avoid picking up 2nd gun when 1 is picked up

So far I made it so that when walking over a weapon, it attaches to my character. I’ve been experimenting with a simple idea that once I pick up 1 gun, I can’t pick up another. Such a simple idea but I’m having trouble doing it.

Flag it with a boolean variable indicating that a gun has been picked up. Query the flag every time a gun is picked up; pseudo-script:

What do you mean by flag? Like binding/calling an event?

A boolean variable - called Has Gun here.

An easy way is create a boolean variable to handle if a item was already picked previously and connect it to a branch node before attachment/detachment