Block player movement?
Hello everyone, I wrote a small plugin that brings up a full screen menu. And the question actually arose of how to prohibit the player's movement, as well as return it back.
I've seen that one solution is to place a small SphereCollider around the player, then when they exit it, teleport them back inside. It stops them leaving a single spot but it doesn't stop their character actually moving a bit.
i solved it like this: i added a check to the onplayerinput hook if the player's location does not match the one specified by the plugin, then it teleports to the location specified by the plugin. maybe my solution will help someone))
and.... what happens if the map changes or the player location changes?
check out the freeze plugin... by WULF....