7.4. CrowdKillRandomAgent

crowd_kill_random_agent ‐ A crowd agent random killing action

7.4.1. Attributes

None.

7.4.2. Description

This action is used to kill a randomly chosen agent in a crowd element. The agent is chosen among the remaining living agents in the target crowd. This action has no effect if all the agents are in the killed state (if there is no remaining living agent).

7.4.3. Expected children

None.

7.4.4. Expected target

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

7.4.5. Example

The example below defines an action that kills a randomly chosen living agent in a crowd media-object.

<crowd_kill_random_agent />