So I'm having trouble figuring this one out. I'm wanting to make a script that will simulate arrow deknocking by allowing the player to push an assigned keyboard button through a script. Currently all that happens when the button is pushed is a chitin arrow gets equipped to the player and unequipped which removes any ammo that the player was about to fire. What I'm wanting to know is how do I get the arrows that were about to be fired automatically reequipped again by the player so that the player doesn't have to go into their inventory and manually do it. The use of MWSE is fine for the mod btw.
I would also like to know how to do this with any shield the player has equipped at the time of pushing the button so that it gets auto unequipped and reequipped.