Announcement

Collapse
No announcement yet.

cooked game, and closing gamewindow after playing?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    cooked game, and closing gamewindow after playing?

    Hi,

    This might be a extremely silly question, but how do I close a cooked game after playing?

    The 'mouse focus' will be inside the game window, so it's impossible to click the close button.
    Pressing the Esc key or anything will not work. Popping up the Start Menu will unlock the mouse, so it's possible now to close the game window.

    It this something that you have to create, like the mouse controls? If so, can someone point me to some docs or tut, as I cannot seem to find anything on this....

    cheers!

    rob

    #2
    Hi,

    I've quit my cooked game by creating a button on my custom HUD class.

    On event click, I make a "Execute Console Command" node in my macro library which is called by my custom HUD class, then type in "quit" in the command node.

    Hope this helps you.

    Click image for larger version

Name:	hud.png
Views:	1
Size:	240.4 KB
ID:	1086939
    Last edited by rit; 09-03-2015, 08:42 AM.
    《Drifting》Third-Person Shooter / Action / Parkour

    Comment


      #3
      Hi,

      Thanks for that! I didn't really looked into the HUD thing, but will do now.

      I find it a bit odd that a simple quit isn't really in the default game window.

      cheers!

      rob

      Edit: for a basic 'quit on ESC' it seems to be even simpler :-)
      Add a input action in the project settings, and in your level BP link this node up to a 'quit game' node.

      Again, thanks for pointing me in the right direction!
      Last edited by Rob Wu; 09-03-2015, 09:09 AM.

      Comment

      Working...
      X