Material change depending on camera?

Hello, I am trying to implement a sort of situation where Character A sees himself as red and Character B as Blue, and Character B sees himself as red and Character A as blue. In essence, i want both characters to see themselves as red and the other as blue (changing the material based on the camera used), but I haven’t seen anything coming close to that on youtube tutorials or other forum posts. If anyone could tell me whether this is even possible, that would be much appreciated.

Thank you

Yeah pretty simple, This is just a quick thing I done on a project I already have so camera doesn’t require to be an actor and cube is obviously not a mesh but your character will be so yeah, anyway, I done this in the Level blueprint

oh wow, i had no idea that ue4 had a node like that. Thanks a bunch, this problem has been keeping me stuck for a while