Reference 〉 Hook

agentReproduce(parentslist[Agent], childAgent, modelHelipad)

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 reproduction of agents of all primitives, use baseAgentReproduce.

Required Parameters

  • parents list[Agent]

    A list of the reproducing parent agents.

  • 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.