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?
swamp_dead_tree
- Zo Kath Ra
- Posts: 931
- Joined: Sat Apr 21, 2012 9:57 am
- Location: Germany
Re: swamp_dead_tree
Please upload an example dungeon.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?
Re: swamp_dead_tree
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.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.