aimodel.removeFunction

Removes a function from the AIModel.

Prototype

  1. bOk = aimodel.removeFunction ( hAIModel, sName|nIndex )

Description

Removes a function from the AIModel at the specified index/with the appropriate name.


Parameters

hAIModel - valid AIModel handle
sName|nIndex - function name or index 1..nFunctionCount


Return values

bOk - true if operation was successful


Sample

  1. for i = 1, #tFunctionsToRemove do
  2. aimodel.removeFunction ( hResource, tFunctionsToRemove[i] )
  3. end

Available since ShiVa 2.0