MAXScript Extensions > MAXScript Extensions for character studio > Crowd MAXScript Extensions > Crowd Behaviors >

# Seek_Behavior : MAXObject

    Seek_Behavior - superclass: ReferenceTarget; super-superclass:MAXWrapper - 11:0 - classID: #(1058553876, 702153735)

| Character Studio - Quick Navigation

Constructor

    Seek_Behavior ... SeekBehavior ...

Properties

    <seek_behavior>.name String Default: "Seek"

Get/Set the name of the behavior.

    <seek_behavior>.targets ArrayParameter Default: #() -- node array

See Notes below.

Specify the object or objects as a stationary or moving target for delegates. Delegates move toward the target during the crowd simulation while turning as necessary.

    <seek_behavior>.targetCompInteger Default: 0

0 - Closest Source Only: Each delegate seeks the closest of the assigned targets. Use this to have delegates assigned a single Seek behavior move in different directions.

1 - Average of Sources: All delegates head to a common point determined by averaging all targets' locations.

    <seek_behavior>.seekMethod Integer Default: 0 -- animatable

0 -Angle: Applies a force to the delegate based on the angle between the delegate's current direction and the direction it would need to take in order to be moving directly towards the goal. If the Weight of the Seek behavior is 1, the delegate will be given a force that points directly towards the goal. If it's .5 it will bisect the angle between its current direction and the direction of the goal.

1 -Force: Applies a force in the direction of the goal always, but at different magnitudes. If the Weight of the Seek behavior is 1, the magnitude of the force will be the average speed. If the Weight of the Seek behavior is .5, the magnitude of the force will be half the average speed.

    <seek_behavior>.forceColor Color Default: (color 0 255 0)

The color used to draw the Seek force vector during the solution.

    <seek_behavior>.displayForce Boolean Default: True

When true, force exerted on the delegate(s) by the Seek behavior is drawn in the viewports as a vector during the simulation solution.

    <Seek_Behavior>.useRadii Boolean Default: False

When true, the Seek behavior applies only to delegates less than the Outer Radius distance from the target.

    <Seek_Behavior>.showRadii Boolean Default: True

When true, the radii are displayed when the force is active.

    <Seek_Behavior>.innerRadius Float Default: 0.0 -- animatable

The distance from the target at which Seek is applied at full strength.

    <Seek_Behavior>.outerRadius Float Default: 10.0 -- animatable

The distance from the target at which Seek begins to be applied.

    <Seek_Behavior>.falloff  Float Default: 2.0 -- animatable

Note

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.

    <Seek_Behavior>.targets

The following MAXScript operations will cause Crowd to fail, either right away or later:
NEVER set a Crowd/Behavior ArrayParameter element to undefined.

#### See Also

- Crowd : Helper

- MAXWrapper Common Properties, Operators, and Methods

- Value Common Properties, Operators, and Methods

- MAXScript Extensions in character studio