7.2. ActivateAgent

crowd_activate_agent ‐ A crowd agent activation action

7.2.1. Attributes

NameTypeDefaults
indexINTEGERNone (required)

7.2.2. Description

This action is used to activate an agent in a crowd element. The agent rank is given by the integer value i of the index attribute. This action has no effect if i is greater than the number of agents or if the ith agent is already in the active state.

7.2.3. Expected children

None.

7.2.4. Expected target

The target node must be a leaf node that contains a crowd.

7.2.5. Example

The example below defines an action that activates the ({$root:n})th agent in a crowd media-object.

<crowd_activate_agent index="({$root:n})" />