aimodel.removeState
Removes a state from the AIModel.
Prototype
bOk = aimodel.removeState ( hAIModel, sName|nIndex )
Description
Removes a state from the AIModel at the specified index/with the appropriate name.
Parameters
hAIModel - valid AIModel handler
sName|nIndex - state name string or index number 1..nStateCount
Return values
bOk - true on success
Sample
for i = 1, #tStatesToRemove do aimodel.removeState ( hResource, tStatesToRemove[i] ) end
Available since ShiVa 2.0