CogControl : ReferenceTarget

CogControl - superclass: ReferenceTarget; super-superclass:MAXWrapper - 3:0 - classID: #(852508842, 872572021)

Constructor

CogControl ...

Properties

<cogcontrol>.name String Default: "CognitiveControl" --string

The name of the state diagram.

<cogcontrol>.startState CrowdState Default: Undefined -- max object; Start_State

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: #() -- max object array

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

CrowdState:MAXObject

CrowdAssignment : MAXObject

CrowdTeam : MAXObject

CogControl : MAXObject

Node Common Properties, Operators, and Methods

MAXWrapper Common Properties, Operators, and Methods

Value Common Properties, Operators, and Methods

 

MAXScript Extensions in character studio