What ends up happening is only one of the character activates the outline (usually the last one that spawned) and when it does it’s not only on that character but on every character on the map.
I’m probably not going about it the right way, does anyone have any suggestions?
You only need one instance of the PP. So you can have it in the level, or maybe in the game instance etc.
Trouble is, because you’ve set the meshes of all the characters as custom stencil, they will light up. Can’t recall, not at a machine rn, but can’t you just only turn on custom depth for the one you’re highlighting, while you’re highlighting them?
Good find, this fixed my team color problem, but the original problem persists, outline only appears when hovering over the last spawned character and it activates on all characters at once
Basically I made the material so that it has 6 “states”
1: Always Show Outline but show Occlusion Fill only when occluded in Ally color
2: Always Show Outline but show Occlusion Fill only when occluded in Enemy color
3: Always Show Outline but show Occlusion Fill only when occluded in Neutral color
4: Show Outline and Occlusion Fill in Ally color only when occluded
5: Show Outline and Occlusion Fill in Enemy color only when occluded
6 Show Outline and Occlusion Fill in Neutral color only when occluded
From here I determine what state the character should be using by switching the Custom Depth Stencil value. The default is anywhere from 4-6 based on team color and it goes to 1-3 on mouse over.