Changes between Version 2 and Version 3 of gp


Ignore:
Timestamp:
Aug 1, 2011 3:35:12 PM (13 years ago)
Author:
xwang
Comment:

--

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.
     1This command returns the current location of the specified entity.
    22
    33'''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
    55
    66'''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.
    711
    812'''Reports:'''
     
    1014
    1115'''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"