true allows movement, false blocks it.
disableMovement value as the settings screen). It does NOT reset on its
own, so the plugin MUST call setMovementEnabled(true) during teardown.
Otherwise the user stays unable to move after the plugin closes.import { setMovementEnabled } from "@urth/metatell-sdk/user";
// when the game starts
setMovementEnabled(false);
// when the game ends / the plugin is destroyed
setMovementEnabled(true);
Enable or disable the current user's movement.
Passing
falseblocks translational movement (WASD / joystick), which is useful, for example, to stop the player from walking around while a game is in progress.