Runs when an agent dies. This hook generalizes to [primitive]Die
, e.g. the death of an agent with primitive 'bank'
could be hooked with bankDie
. To hook the death of agents of all primitives, use baseAgentDie
.
Required Parameters
agent — Agent
The agent that died.
Notes and Examples