game.getPluginName

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

Prototype

  1. sPluginName = game.getPluginName ( hGame, nIndex )

Description

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


Parameters

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


Return values

sPluginName - plugin name string


Sample

  1. for i = 1, nPluginCount do
  2. local hFile = project.getFile ( project.kFileTypePlugin, game.getPluginName ( hGame, i ) )
  3. -- etc.

Available since ShiVa 2.0