Page 1 of 1

Pop out items

Posted: Sun May 14, 2023 2:31 am
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.

Re: Pop out items

Posted: Sun May 14, 2023 8:45 am
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.