Changes between Version 2 and Version 3 of gp
- Timestamp:
- Aug 1, 2011 3:35:12 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
gp
v2 v3 1 This query returns the position of a given Quagent. A -1 ID implies a response of all Quagents' positions.1 This command returns the current location of the specified entity. 2 2 3 3 '''Parameters:''' 4 * 1 long botid, which identifies a bot to locate. An ID of -1 will return all bots' positions.4 * 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 5 5 6 6 '''Responds:''' 7 * ''W TYPE X Y Z'' for each entity. 8 * where W is the entityid 9 * where TYPE is the typename that would be returned by a [[wi]] on this entity. 10 * where X Y Z are the coordinates of the entity. 7 11 8 12 '''Reports:''' … … 10 14 11 15 '''Example:''' 12 * User sends: "gp 22 0" 16 * User sends: "gp 512 -1" 17 * Director replies: "rs gp 512 0 player 2823.500000 244.250000 557.625000" 18 * Director replies: "rs gp 512 1 player 1837.500000 1342.750000 557.625000" 19 * Director replies: "cp gp 512 done"