Pop out items

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
byronsaniry
Posts: 5
Joined: Thu May 11, 2023 9:44 am

Pop out items

Post by byronsaniry »

Is there any way we can pop out items out of a chest or crate? For example, when we interact with a crate, it releases an item to the world where we can pick it up. Thank you.
User avatar
Tony Li
Posts: 22131
Joined: Thu Jul 18, 2013 1:27 pm

Re: Pop out items

Post by Tony Li »

Hi,

If you're using the Dialogue System's Selector / Proximity Selector component on the player and a Usable component on the chest, you can configure the Usable component's OnUse() UnityEvent to play an "open" animation on chest, maybe activate a particle system for visual effect, and activate an item pickup GameObject.
Post Reply