I want to develop a mechanic in the game where the ending gate opens when the player passes anything purple through a trigger volume near the gate. Is there any way I can check if the thing that just hit the trigger volume has a certain material on, and open the gate only when there’s this certain material on the object?
Hey there,
This is the node you’re looking for:
But I think an easier way to go about this is to keep track of a boolean in the player’s blueprint instead of trying to access each material, and then decide form that. It’s quite difficult to determine from a material: “Does this material have any purple on it?”, whereas you can keep track of a boolean that reads something like “does this player have purple on him? T/F”
Thank you for your suggestion. It’s like one of those “Why the hell did I not think of that instead?” moments. Will implement and update (this might take a while). Again, thanks.