BetterUI icon indicating copy to clipboard operation
BetterUI copied to clipboard

In-Game Return to Lobby button

Open breadguyyy opened this issue 4 years ago • 1 comments

Would love to see a return to lobby button on the in-game escape menu (possibly host only in mp?) that brings everyone back to the lobby with all characters selections/artifacts saved. last part isn't super important but would be nice nonetheless

breadguyyy avatar Sep 30 '20 17:09 breadguyyy

The button with the <RoR2.ConsoleFunctions> used on the game end report panel that sends you back to the lobby runs the "run_end" command. The console command has the flag "ConVarFlags.SenderMustBeServer". All the command does is

if (Run.instance)
{
  UnityEngine.Object.Destroy(Run.instance.gameObject);
}

This would be doable as a host-only/singleplayer button.

DestroyedClone avatar Apr 13 '22 22:04 DestroyedClone