When Creating New Agent Trigger


The When Creating New Agent trigger executes the enclosed rules whenever a new agent is created in a worksheet. These rules are executed regardless of whether the worksheet in which the new agent is created is running or not.

The When Creating New Agent trigger is usually used to initialize the agent's state.




In the Ultimate Pacman simulation, when a new Pacman agent is created, it initializes its p value to 1000.

Ultimate Pacman

See the Ultimate Pacman simulation.

| Next | Previous | Reference Manual | Getting Started Manual |