Author Topic: Detecting if a brick is planted in a trigger or not  (Read 1297 times)

I'm wondering how i would check if a brick was placed within a trigger or not. For Example, is there a way to use onEnterTrigger(); and onLeaveTrigger(); to check if a brick was placed within a trigger? or would a ContainerBoxSearch be needed, and how would someone set that up?

Your best bet is probably to package fxdtsbrick::onplanted() or some similar function and check the location of the brick.

I would imagine creating an object inside a trigger triggers (no pun intended) onEnterTrigger. Since bricks don't move unless they're ghost bricks, checking isPlanted in that callback should be suffice to determine that that brick was just created inside the trigger.

alright ill see what i can do, thnx guys