add the respawn key to marble/client/scripts/default.bind.cs

TODO: make this rebindable
This commit is contained in:
yellows111 2024-03-11 08:45:41 +00:00
parent f7658cb243
commit d80a53951f
1 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,9 @@ function escapeFromGame()
moveMap.bindCmd(keyboard, "escape", "", "escapeFromGame();");
// respawn key TODO: make this one remapable
// usage: bindCmd(device, action, onDown, onUp)
moveMap.bindCmd(keyboard, "r", "", "if($Game::State !$= \"End\"){ClientGroup.getObject(0).respawnPlayer();}");
//------------------------------------------------------------------------------
// Movement Keys