aimodel.getFunctionCount
Counts the number of functions in an AIModel.
Prototype
nCount = aimodel.getFunctionCount ( hAIModel )
Description
Counts the number of functions in an AIModel and returns a number between 0 and n. Make sure hAIModel is valid.
Parameters
hAIModel - handle to an AIModel
Return values
nCount - number 0..n
Sample
local nFunctionsCount = aimodel.getFunctionCount ( hResource ) if ( nFunctionsCount > 0 ) then -- do stuff
Available since ShiVa 2.0