Okay, great. Learning is always a good reason to experiment and ask questions. I’m happy to help.
So let me rephrase my question, and then explain why I’m asking.
What do you want to happen when you press the ‘S’ key? Normally, for a third-person view, this is the “move backward” (toward the camera) button. If you don’t want your pawn to be able to move toward the camera, what should the ‘S’ key do? Nothing? Or…
If I sound confusing with that question, let me ask a different one. When you say the pawn “can NOT walk towards the camera”, do you mean that you just don’t want the pawn to turn and face the camera? But the pawn is still allowed to move toward the camera by moving ‘backward’? (This makes more sense for a humanoid character, which has a front and a back, but is harder to imagine when your pawn is just a sphere, which looks the same from every direction.) Is this closer to what you have in mind?
I just want to make sure I can picture what your desired result is before I try to answer your questions and provide suggestions.