Hi I'm making feature about NPC who pickup items and move to storage and move that item to it
It was easy to pickup with player but I don't know how to do it with NPC
Is there any scripts to do this?
Hello makelchs.
There should be no difference bettwen picking up as a player or an NPC.
Picking up items is done by the InventoryInteractor component, you can set it to AutoInteract to pickup simply by walking into the pickup if you want for your NPC. It uses a Layer mask make sure that your pickup collider is set on a Layer that the pickups can interact with the NPC.
Lear more here:
The inventory system requires a lot of interactions to pickup items, open chests, open a menu, etc. An interaction system has been created in order . . .
Item pickups are components used to “pickup” items using an Interactable (the Item Pickup) and an Interactor (the character). There are multiple types of pickups: . . .