aimodel.getFunctionCount

Counts the number of functions in an AIModel.

Prototype

  1. 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

  1. local nFunctionsCount = aimodel.getFunctionCount ( hResource )
  2. if ( nFunctionsCount > 0 ) then
  3. -- do stuff

Available since ShiVa 2.0