5 #ifndef DISABLE_INVENTORY
7 override bool CanBePerformedScript(IEntity user)
9 SCR_InventoryStorageManagerComponent
pInventoryManager = SCR_InventoryStorageManagerComponent.Cast( user.FindComponent( SCR_InventoryStorageManagerComponent ) );
16 SetCannotPerformReason(
"#AR-Inventory_NoSlot");
24 override protected void PerformActionInternal(SCR_InventoryStorageManagerComponent manager, IEntity pOwnerEntity, IEntity pUserEntity)
26 if (CanBePerformedScript(pUserEntity))
27 manager.EquipGadget( pOwnerEntity );