I am storing information about various ObjectReferences in JContainers. I need to be able to remove them from JContainers once they've been used up. For example, when a player consumes one of the ObjectReferences.
Unfortunately, it's not possible for me to know when when one of these items is used up. For example, when a soul gem is used at the enchanting workbench, neither a Story Event Player Remove Item is fired, nor is an OnPlayerRemoveItem event fired.
So, I've got to go about it in a more indirect manner. I was hoping I could call some function on the object ID of a persistent ObjectReference. If the object exists, then it'll return that object. If it doesn't exist, then it will return None.
Unfortunately, Game.GetForm() always returns None when I pass it the ID of a persistent ObjectReference. This makes sense because it's meant to find Forms rather than ObjectReferences.
Any ideas on how I might know that an object I'm tracking is no longer in the game?