modded class SCR_CharacterInventoryStorageComponent : CharacterInventoryStorageComponent
{
protected override void OnAddedToSlot(IEntity item, int slotID)
{
super.OnAddedToSlot(item, slotID);
if (!SCR_PlayerController.GetLocalControlledEntity())
return;
IEntity child = item.GetChildren();
Print("OnItemAdded");
Print(child); // ALWAYS NULL
}
protected override void OnRemovedFromSlot(IEntity item, int slotID)
{
super.OnRemovedFromSlot(item, slotID);
IEntity child = item.GetChildren();
Print("OnRemovedFromSlot");
Print(child); // THIS WORKS !
}
}