game.getSceneName

Retuns the name of a referenced scene in the game editor module.

Prototype

  1. sSceneName = game.getSceneName ( hGame, nIndex )

Description

Retuns the name of a referenced scene at index number nIndex in the game editor module.


Parameters

hGame - valid Game handle
nIndex - index number 1..nCount


Return values

sSceneName - scene name string


Sample

  1. for i = 1, nSceneCount do
  2. local hFile = project.getFile ( project.kFileTypeScene, game.getSceneName ( hGame, i ) )
  3. -- etc.

Available since ShiVa 2.0