15 override UniversalInventoryStorageComponent GetStorageComponent() {
return m_pStorageComponent; }
19 override bool RemoveItem()
24 SCR_InventoryStorageManagerComponent invMan = GetInventoryManager();
25 EquipedWeaponStorageComponent weaponStorage = m_pStorageUI.GetWeaponStorage();
26 IEntity item = m_pItem.GetOwner();
27 if(!(invMan && invMan.CanMoveItem(item) && weaponStorage))
29 bool success = invMan.CanRemoveItemFromStorage(m_pItem.GetOwner(), weaponStorage);
34 invMan.TryRemoveItemFromInventory(item, weaponStorage);
39 m_pStorageUI.GetInventoryMenuHandler().ShowStorage(weaponStorage);
43 SoundComponent soundComponent = SoundComponent.Cast(itemEntity.FindComponent(SoundComponent));