aimodel.getFunctionName
Returns the name string of a function in an AIModel.
Prototype
sName = aimodel.getFunctionName ( hAIModel, nIndex )
Description
Returns the name string of the function at a specified index in hAIModel.
Parameters
hAIModel - valid AIModel handle
nIndex - index 1..nFunctionsCount
Return values
sName - function name string
Sample
-- sort functions by name local tSortedFunctions = { } for iIndex = 1, nFunctionsCount do table.insert ( tSortedFunctions, aimodel.getFunctionName ( hResource, iIndex ) ) end table.sort ( tSortedFunctions )
Available since ShiVa 2.0