wiki:gp

Version 3 (modified by xwang, 13 years ago) (diff)

--

This command returns the current location of the specified entity.

Parameters:

  • 1: int entityid - this specifies the entity to locate. An ID of -1 will return all clients' positions. An ID of -2 will return all entity positions

Responds:

  • W TYPE X Y Z for each entity.
    • where W is the entityid
    • where TYPE is the typename that would be returned by a wi on this entity.
    • where X Y Z are the coordinates of the entity.

Reports:

  • done when the task completes.

Example:

  • User sends: "gp 512 -1"
  • Director replies: "rs gp 512 0 player 2823.500000 244.250000 557.625000"
  • Director replies: "rs gp 512 1 player 1837.500000 1342.750000 557.625000"
  • Director replies: "cp gp 512 done"