CogControl : MAXObject

Constructor

CogControl ...

Properties

<cogcontrol>.name                      String      Default: " CognitiveControl"

The name of the state diagram.

<cogcontrol>.startState                CrowdState  Default: Undefined

Set the starting CrowdState. By default the state that executes first in a cognitive controller is the one that was added first.

<cogcontrol>.states                 ArrayParameter Default: #()   -- array of CrowdState objects

All of the states used by this cognitive controller.

Notes

You can perform the following MAXScript operations

deleteitem <array> <itemnumber>

<array> = #(item,item...)

<array> = append <array> <item>

on all of the properties containing an ArrayParamater of objects listed below. You can also undo/redo these operations.

<CogControl>.states        -- array of CrowdState objects

If you delete a CrowdState (deleteitem $crowd01.cogcontrols[1].states 1), it may still be referenced by either the startState or by a CrowdTransition stored in another CrowdState.

The following MAXScript operations will cause Crowd to fail, either right away or later:

NEVER set a States ArrayParameter element or the startState to undefined.

NEVER set a States ArrayParameter element or the startState to anything other than a CrowdState.

See also