Page 1 of 1

PauseGameOff function

PostPosted: Wed Jun 12, 2013 6:20 pm
by RippeR7420
So i know how it works with a keyboard press or a mouse click, But I cant seem to get it working with a Controller.

And all I can find in the Script Reference is this:
PauseGameOff: Continue a game that has been paused by PauseGameOn() function. See Example below under PauseGameOn.
void PauseGameOff()

Script Editor Syntax/ Example Code:
1) When the user wants to pause a game, Create your "pauseActor": "Paused - Click To Resume".
2) On the Create Actor Event of "pauseActor" add a Script Editor Action with the following code:
PauseGameOn();
3) On Mouse Button Down event, add a Script Editor action with the following code:
PauseGameOff();
DestroyActor("Event Actor");



PauseGameOn: Pause the game but continue receiving keyboard and mouse events. This is done so, you can call PauseGameOff() in a keyboard or mouse event.
void PauseGameOn()


Script Editor Syntax:
PauseGameOn();


I can get it to pause the game with a controller, but is there no way to un-pause a game with a controller?


I have a feeling it's "No, you cant. You must use a keyboard or mouse event.", But thanks in advance for answer!

Re: PauseGameOff function

PostPosted: Wed Jun 12, 2013 6:29 pm
by skydereign
RippeR7420 wrote:I have a feeling it's "No, you cant. You must use a keyboard or mouse event.", But thanks in advance for answer!

You can upause with key events as well.

Re: PauseGameOff function

PostPosted: Wed Jun 12, 2013 7:03 pm
by RippeR7420
Like assign a joystick button to a key? I don't understand.
Thank you though Sky, for always being so quick, helpful and patient with me. haha.

Re: PauseGameOff function

PostPosted: Wed Jun 12, 2013 10:40 pm
by skydereign
RippeR7420 wrote:Like assign a joystick button to a key? I don't understand.

Ah, I misread that. I didn't see that you put key events as well. But yeah, as long as the joystick is mapped to key events, then it should still work for unpausing.

Re: PauseGameOff function

PostPosted: Thu Jun 13, 2013 5:06 am
by RippeR7420
Hmmm. Could you lead me in the direction of how to map a joystick to key events? I cant seem to find anything within the forums. but I will keep looking.