Reference 〉Hook

agentReproduce( Agent parent, Agent child, Helipad model )

Runs when an agent reproduces. This hook generalizes to [primitive]Reproduce, e.g. the death of an agent with primitive 'bank' would be hooked with bankReproduce. To hook the death of agents of all primitives, use baseAgentReproduce.

Required Parameters

  • parent Agent

    The agent reproducing.

  • child Agent

    The newly spawned agent.

  • model Helipad

    The model object.

Notes and Examples

  1. Contribute a Note

    Your email address will not be published. Required fields are marked *

    You may use limited HTML for formatting. Please embed blocks of code in <pre><code> </code></pre> tags.