Material deciding a branch outcome

I’m currently editing a Rocket League type game which I have not made myself. In this game I am trying to set up parameters based on the distance between two players. In the blueprints the player is auto assigned a coloured material (either red or blue).

I was wandering if there is a way create a branch node where the condition is effected by materials e.g

If Orange Material - Branch = True

It’s strange flow. Color in material should be a consequence, not cause.

Use some property to specify player “type”. Maybe team index, or something else. Color players materials according to this property. And use it for other branches/conditions.

Set the material you want to check in the == node and replace the static mesh component with your static mesh component / skeletal mesh.