1. Create this component
````
class BugPrintComponentClass : ScriptComponentClass
{
}
class BugPrintComponent : ScriptComponent
{
override event void OnPostInit(IEntity owner)
{
PrintFormat("OnPostInit - this:%1 - owner:%2", this, owner);
}
override event void OnDelete(IEntity owner)
{
PrintFormat("OnDelete - this:%1 - owner:%2", this, owner);
}
}
```
2. Add that component to `AspirinBottle`.
3. Run this action code or put it somewhere else, as long as `TrySpawnPrefabToStorage` is executed you see the problem.
```
override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
{
SCR_InventoryStorageManagerComponent inventoryManager = SCR_InventoryStorageManagerComponent.Cast(pUserEntity.FindComponent(SCR_InventoryStorageManagerComponent));
Print("TrySpawnPrefabToStorage before");
Print("TrySpawnPrefabToStorage result: " + inventoryManager.TrySpawnPrefabToStorage("{C98FCC6CA6C56069}Prefabs/Items/Medicine/AspirinBottle.et"));
Print("TrySpawnPrefabToStorage after");
}
```