Reference 〉 Hook

agentTransfer(agentAgent, originHelipad, destHelipad)

Runs when an agent transfers from one model to another in a multi-level model. This hook generalizes to [primitive]Transfer, e.g. an agent of primitive 'worker' could be hooked with workerTransfer. To hook the moving of agents of all primitives, use baseAgentTransfer.

Required Parameters

  • agent Agent

    The agent moving.

  • origin Helipad

    The model from which the agent originated.

  • dest Helipad

    The model to which the agent is moving.

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.