Make character view material different than other player of same blueprint

Hello everyone,

I have a cage and 2 characters. With a spheremask in the cage material i want to show a part of the cage when the player gets close by updating a vector parameter through my character blueprint. the problem is that there can be multiple copies of my character. how to separate this effect. so that every player sees the shader different.