PauseGameOff function
Posted: Wed Jun 12, 2013 6:20 pm
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:
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!
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!