If you need to get the Children from the item in: SCR_CharacterInventoryStorageComponent "OnAddedToSlot"
It will always return "NULL"
But, if you try the same with "OnRemovedFromSlot" the Children will retun.
If you need to get the Children from the item in: SCR_CharacterInventoryStorageComponent "OnAddedToSlot"
It will always return "NULL"
But, if you try the same with "OnRemovedFromSlot" the Children will retun.
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 ! } }