Page 1 of 1

game.pause() or script.pause()

Posted: Wed Jun 07, 2017 2:45 pm
by mophydeen
Is there a way to pause the game in lua?

Re: game.pause() or script.pause()

Posted: Wed Jun 07, 2017 4:35 pm
by darkfrei
And on next tick unpause?

Re: game.pause() or script.pause()

Posted: Wed Jun 07, 2017 7:08 pm
by mophydeen
darkfrei wrote:And on next tick unpause?
:)


event join or gui click

Re: game.pause() or script.pause()

Posted: Wed Jun 07, 2017 7:20 pm
by Rseding91
No, pausing halts all script processing so if a script paused the game it would never be able to un-pause it.

Re: game.pause() or script.pause()

Posted: Wed Jun 07, 2017 8:02 pm
by Ranakastrasz
Given what happens when you set game speed to 0.01, I can believe that. There is a good half second delay between hitting esc and the menu opening. Clearly those are coupled with gamespeed instead of being standalone like UI usually should be.

Re: game.pause() or script.pause()

Posted: Wed Jun 07, 2017 8:37 pm
by darkfrei
Ranakastrasz wrote:Given what happens when you set game speed to 0.01, I can believe that. There is a good half second delay between hitting esc and the menu opening. Clearly those are coupled with gamespeed instead of being standalone like UI usually should be.
game speed 0.1 is minimum

Re: game.pause() or script.pause()

Posted: Wed Jun 07, 2017 9:12 pm
by Ranakastrasz
darkfrei wrote:
Ranakastrasz wrote:Given what happens when you set game speed to 0.01, I can believe that. There is a good half second delay between hitting esc and the menu opening. Clearly those are coupled with gamespeed instead of being standalone like UI usually should be.
game speed 0.1 is minimum
Nope. I tested it. Its 0.01

Unless they changed in within the last day or two, anyhow.