Ray Perception Sensor 3D Detectable Tags when self-playing

I'm doing a little experiment with multi-agent RL using self-play. I was wondering if my assumption about Ray Perception Sensor 3D Detectable Tags is correct. Basically both teams have the same goal, but both should distinguish their teammates and enemies through ray perception.

AFAIK detectable tags are one-hot encoded so if team1 agent looks like this:
9845565--1416906--upload_2024-5-20_19-3-28.png

And team2 looks like this:
9845565--1416903--upload_2024-5-20_19-3-1.png

to my best knowledge it should work just as I expect. Am i correct? Or maybe it's totally unnecesary and there is different solution for that case?

Thanks in advance. Have a nice day!

9845565--1416900--upload_2024-5-20_19-2-31.png

if you have the demos look at the soccer twos example