PedGroupDisassemble


When group leader enters this object, group dissolves, so pedestrians become independent from each other and follow their personal paths.

Demonstration model: Pedestrian Groups

Parameters

Actions
On enter [code]
Code executed when the pedestrian enters the object.
Local variable: ped - the pedestrian
On before group disassemble [code]
Code executed before group is dissassembled.
Local variable: PedGroup group - the group of pedestrians.
On exit [code]
Code executed when the pedestrian exits the object. 
Local variable: ped - the pedestrian.

Functions

long countPeds() - Returns total number of pedestrians passed through this block.

long countGroups() - Returns number of groups disassembled by this block.

Ports

in
The input port.
out
The output port.