Well... here's one way you could do it:
- Run a check on every weapon that you have in the game
- If the player is holding any of those weapons, swap that weapon with the one on the floor.
An example would look like: (Weapon on the floor is modern/law)
:haveweap=scifi/tavor:replaceweap=scifi/tavor modern/law
:haveweap=scifi/blaster:replaceweap=scifi/blaster modern/law
:haveweap=scifi/vickers:replaceweap=scifi/vickers modern/law
Of course, the above script wouldn't be what you'd use. You would need to add more conditions and complete the necessary states that the script would consist of.
The method you're looking for, though, wouldn't work all that well with dual-wielding. The problem with "swapping" the floor weapon with the current weapon when dual-wielding is..... which weapon do you swap?
The one and only,