How would i auto pickup

Say if i have a weapon property of integar with a value of 2.
when 1 is selected 2 is invisible vice versa, But if i want to select 2 witch is the pistol i have to pick it up. Lets say i pick it up how can i make it automatic switch… like
have a animation play and switchin :>

When touching the Object lyin’ on the Floor, check whether the Player has the Pistol in his Armory (via a Property, haspistol=False for Example) and if he has not, then change the Property plus play an Animation.
Besides, I have already seen that several Weapons within the Armory might be placed within several States of the Logic Bricks. One State for Pistol equipped, one State for Shotgun, et cetera… So, if you do it that Way (I guess that is recommended), then also switch to the Pistol State.

ill try that, cheers.

yes i put a animation now so when you select the weapon it brings it up. but i cant make it autoselect :confused: