Do you mean here?You can get a reference to the item by calling GetActiveItem on the inventory component. From there you can get the visible item on the PerspectiveItem and disable the objects. The documentation has an example of getting the item.
ok. I will update and try again.That documentation is for version 3. If you're on version 2 the pdf has the syntax. In version 3 it is GetActiveCharacterItem: https://opsive.com/support/documentation/ultimate-character-controller/items-inventory/inventory/
You can get a reference to the item by calling GetActiveItem on the inventory component. From there you can get the visible item on the PerspectiveItem and disable the objects. The documentation has an example of getting the item.