is there something wrong with this s***?

i have 4 vaiables:Is armed(boolean); weapon in hand(Base weapon ref); weapon slot 1(Base weapon ref); weapon slot 2 (base weapon ref).

the logic is

press (1 key) is armed? true weapon in hand = weapon slot 1 true attach to spine set is armed false

press (1 key) is armed? true weapon in hand = weapon slot 1 false attach to hand set amed true

press (1 key) is armed? false get weapon slot 1 attach to hand set is armed

the same thing to (2key) and weapon slot 2

and the images are the way i make the equip weapon event