application.pauseCurrentGame

Pauses the execution of the currently loaded game.

Prototype

  1. bOk = application.pauseCurrentGame ( )

Description

To unpause, just play() the game again.


Parameters


Return values

bOk - true on successfully pausing the game


Sample

  1. function onPlayPause ( )
  2.  
  3. if ( application.isCurrentGameRunning ( ) )
  4. then
  5. application.pauseCurrentGame ( )
  6. else
  7. application.startCurrentGame ( )
  8. end
  9. end

Available since ShiVa 2.0