how to make CharacterCollider ignore LayerMask?

like if 1 player is wearing wall breacher he could pass through certain walls while others cannot follow him.

how to make so:

CharacterController controller = transform.GetComponent<CharacterController>();

that he will breach the wall, … ?

like iddclip does it, …

In the PhysicsManager (Edit - Project Settings - Physics) you can edit the Layer Collision Matrix to have collision be ignored between specified layers. Add two layers “PlayerIgnoreWall” and “Wall” and set it so the two layers do not collide with each other. Then apply the “Wall” layer to the walls in the editor and when in game you change the layer of the player to the “PlayerIgnoreWall” when picking up the powerup.

Now the player should be able to walk through the wall with normal movement.