- Home /
Why do these triggers ignore each other?
Ok I have a game where you can place and connect pipes and buildings. At the end of each pipe I placed a "Pipe End" trigger. Now when you are placing a pipe if you have a "Pipe Connecter" trigger staying in a "Pipe End" trigger it lets you place the pipe or building you were trying to place. And then if you have a "Pipe End" trigger , which is is the same position that the "Pipe Connecter" was in before it was placed, touching another "Pipe End" trigger then it lets the liquid pass through. With this set up and am currently able to connect three different pipes and any fashion and have the liquid come through at the same flow all the way through.
But here is where im having my problem. When I try to connect my building it detects the "Pipe Connecter" trigger and lets me place it but it can't find the "Pipe End" trigger. I have paused the game and found both triggers and can see that they are touching. So any ideas as to what could be causing this issue? I don't belive it is a programing issue since everything else fits together fine but if you want to see the involded code let me know. And thanks in advance.