The game object exposes several methods on the game that is currently being played.
Methods
getGameTime()
- returns the current game time in seconds (float)
text()
- displays text on the screen
- parameter: message (string); the text to display
random()
- returns a random integer using the Dark Forces random number generator (this is not the C/C++ random number function)
- parameter: an integer value; the returned number will be between 0 and this value
playCutscene()
- plays an OGV cutscene
- parameter: cutsceneName (string); the name of the cutscene to play