This mod fixes a bug in the SetGhost function to some extent. At least AID items no longer disappear into the void.
Permissions and credits
Credits and distribution permission
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou must get permission from me before you are allowed to use any of the assets in this file
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are not allowed to earn Donation Points for your mods if they use my assets
Console modding permissionThe author gave permission for someone else to port this mod to console and for it to be uploaded to Bethesda.net. Please credit the author, however
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
SetGhost - Flags this actor as a ghost or not. Ghosted actors do not register OnHit events and are unaffected by Weapon, Spell, Explosion, Ingredient, Potion, or Enchantment. https://falloutck.uesp.net/wiki/SetGhost_-_Actor
What this mod does is return the item after you use AID/Food (i.e. Potion Form) if "Player.IsGhost == True".
The SetGhost function is triggered by some scenes in the base game or by certain mods, and generally speaking, player controls should also be disabled at the same time. This mod is intended to work for possible exceptions.
If a similar mod exists, it is not worth using this mod.
This mod will be updated if I come up with another fix.