Reference 〉 Hook

agentPosition( Agent agent, Helipad model )

Determines agent position on the launch of a spatial model. If not specified, agents are randomly positioned. In a spatial model, this hook runs for every primitive except patches, which have a fixed position.

Required Parameters

  • agent Agent

    The agent object to be positioned.

  • model Helipad

    The model object

Expected Return Value tuple(num, num)

A list or tuple with the (x,y) coordinates of the agent's initial position.

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.