aimodel.removeState

Removes a state from the AIModel.

Prototype

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

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

Available since ShiVa 2.0