Page 1 of 1

swamp_dead_tree

Posted: Sat May 09, 2020 3:41 pm
by RayB
I was looking to find out about being able to place and remove an item in the hole of the swamp dead tree. I found an old post with examples on using a surface component. The same post also included a socket component example.

I was interested in the socket example so I tried it. I am able to place and object into the hole but once there I can't remove it.

Can anyone explain what might me going on?

Re: swamp_dead_tree

Posted: Sat May 09, 2020 4:18 pm
by Zo Kath Ra
RayB wrote:
Sat May 09, 2020 3:41 pm
I was looking to find out about being able to place and remove an item in the hole of the swamp dead tree. I found an old post with examples on using a surface component. The same post also included a socket component example.

I was interested in the socket example so I tried it. I am able to place and object into the hole but once there I can't remove it.

Can anyone explain what might me going on?
Please upload an example dungeon.

Re: swamp_dead_tree

Posted: Sat May 09, 2020 8:18 pm
by minmay
ClickableComponents are prioritized over items in a SocketComponent, so if any part of your ClickableComponent box is in front of the item, it can make it difficult to pick up. A simple solution is to disable the ClickableComponent in the SocketComponent's onInsertItem hook and re-enable it in the onRemoveItem hook.