Locking a CharacterController Object to the Y axis

Hello! I am creating a Twin Stick style top down game but have a rather game breaking problem right now that the Enemies (which have Character Controller Physics) are being pushed upwards along the Y axis as they are hit with RigidBody Bullets. Is there a way to lock the Y axis to 0 in a CharacterController Object? Similar to the way you can constrain a RigidBody along different axis which is how I am managing the bullets right now. I’ve already tried to set the y transform to 0 but that only keeps it level with however high it is pushed, not stopping it from being moved in the first place.

Thanks guys!

I actually found a way around this after some playing with settings. Now it descends back down to the starting location or one that could be defined in the code.

if(transform.position.y != yAxisLocation) { moveDirection.y = (yAxisLocation - transform.position.y) * 0.9f; }

A lot simpler than I thought it would be. yAxisLocation is just set to zero here and moveDirection is a Vector3.