Get Closest Agent

Gets the id of the closest agent in a cone area.

Success: When an agent could be found.

Failure: When no agent could be found

Running: Never


Attributes

Attributes
Type
Description
lockAgentboolIf on, ensures no data on the agent is written simultaneously by nodes that have this option active.
positionvector3Position
directionvector3Direction
sightAngledoubleSight angle
distancedoubleRadius/Distance used to search neighbor agents
conditionMetadataNamestringMetadata name used as condition to filter the neighbours. If not metadata name is given, no agent is excluded from the neighbours search
conditionMetadataValueany

Metadata value used as condition to filter the neighbours.
The agents having a metadata containing a value different from this value are excluded by the neighbours search

agentGroupsstring arrayAgent groups used to search for the closest agent
agentIdBlackboardKeystringBlackboard key that will store the id of the closest agent

Copyright © 2017, Toolchefs LTD.