So I've been thinking of implementing something where if you really need to, you can throw your weapon at an enemy as an attack. My problem is that I have no idea how to move the actual weapon to that location like the generic throw action does. Is that an option accessible to modders?
No, it's not a modding option.
Still, I think the idea is hilarious (had it for years myself) and I'd be happy to see it, for the lulz if nothing else
Normal throw: normal throw
Ctrl + throw: treat the item as a thrown missile, with damage depending on its weight, as well as new custom modifier(s) to reflect things like hardness or sharpness