disabling movement

Please I need to khnow haw to disable movement of my fps character when he affect certain disatance to another object in c#
I’m a begginer.

Not exactly sure what you’re asking… I do know that if you are using the Standard First Person Character Controller in the Character Motor script there is a variable that is canControl. Just set that to false and you can’t move

Make your question clear so we can help you

I want my character stops when it reaches a certain distance of an object.
I used the default player fps in unity.

I want my character stops when it reaches a certain distance of an object.
I used the default player fps in unity.