Can a NPC collect item from item spawners

I applied the auto pick up in island settings and when the NPC passes through the item spawner, it is not collecting the item. Whereas when a player pass through it, the item got auto picked up. Is there any way we can do some script to make this possible?