I currently have a blueprint where players can put a physics object on a pressure plate that triggers a door to open. I want to add a check in between to make sure the physics object and pressure plate have matching materials before opening the door.
Was thinking of something like this but haven’t found a way to check if the materials will match each other or not. Let me know if you need more details or anything.
This would likely be easier using tagging both objects and checking that those match.
Better still would be to give the actors an ID and using an interface to check if they match.
Materials might be a bad choice because, if you ever want to use a dynamic material instance, to say light up the boxes or give some sort of status feedback, then those dynamic materials will never match.
I see that might put me in a pickle for how I’m implementing my idea. Trying to have it setup to where you can change the material of an object to match the plate to interact with. I’ll look into tagging to see if it can help out, or changing the object itself to match instead.
Thanks for the tip. Wasn’t able to get understand tags, but just had the objects check to see they matched a value I set based on what material they were. Thank you mate