aimodel.getVariableCount
Counts "member" variables in an AIModel.
Prototype
nCount = aimodel.getVariableCount ( hAIModel )
Description
Counts "member" variables in an AIModel, which can be accessed in script using this.varName().
Parameters
hAIModel - valid AIModel handle
Return values
nCount - number variable 0..n
Sample
local nVariablesCount = aimodel.getVariableCount ( hResource ) if ( nVariablesCount > 0 ) then -- do stuff
Available since ShiVa 2.0