How to make a character immovable?

I was wondering whether its possible to make a movable object immovable after perhaps colliding with something? Then afterwards if the process can be reversed?

There is a behavior called Enable,
Set this to false and it cant move.

To give control back, make it true.