Freeze player in skin-select and control state util

This commit is contained in:
Vortrex
2022-01-07 19:51:45 -06:00
parent ce3e09575e
commit 5e146224a5
2 changed files with 8 additions and 17 deletions

View File

@@ -111,20 +111,10 @@ function toggleSkinSelect(state) {
localPlayer.skin = allowedSkins[skinSelectorIndex][0];
skinSelectMessageTextTop = allowedSkins[skinSelectorIndex][1];
gui.showCursor(true, false);
//localPlayer.invincible = true;
//localPlayer.setProofs(true, true, true, true, true);
localPlayer.collisionsEnabled = false;
setLocalPlayerControlState(false, false);
} else {
usingSkinSelector = false;
//game.restoreCamera(true);
gui.showCursor(false, true);
if(localPlayer) {
//localPlayer.invincible = false;
//localPlayer.setProofs(false, false, false, false, false);
localPlayer.collisionsEnabled = true;
}
setLocalPlayerControlState(false, false);
}
}