wiki:ra

Version 2 (modified by jpawlick, 13 years ago) (diff)

--

This ProtocolZero command asks the agent to tell you the entityids? of every game object it can see within the provided range. It responds once for each entity, and completes after all responses are issued.

Parameters:

  • 1 float range. Only entities closer than this range are returned. If you provide a non-positive range, the command considers the range infinite.

Responds:

  • X for each entity that can be seen, where X is that entity's entityid?. The set of seen entities does not include the quagent itself.

Reports:

  • done when the task completes.
  • popped if popped by po.
  • forgotten if deleted by fa or fm.
  • replaced if replaced by a command scheduled with 'r'.

Example:

  • User sends: "n ra 512 800"
  • Bot replies "rs ra 512 2"
  • Bot replies "rs ra 512 144"
  • Bot replies "rs ra 512 145"
  • Bot replies "rs ra 512 146"
  • Bot replies "rs ra 512 147"
  • Bot replies "rs ra 512 148"
  • Bot replies "cp ra 512 done"

Attachments (2)

Download all attachments as: .zip