Hobinbot@legacy41545296 (talk | contribs) (upgraded deprecated template) |
No edit summary |
||
Line 1: | Line 1: | ||
{{wowapi}} |
{{wowapi}} |
||
− | timeInQueue = GetBattlefieldTimeWaited(); |
+ | timeInQueue = GetBattlefieldTimeWaited( battlegroundQueuePosition ); |
Get time this player's been in the queue in milliseconds |
Get time this player's been in the queue in milliseconds |
||
+ | == Function Parameters == |
||
− | ---- |
||
+ | === Arguments === |
||
⚫ | |||
+ | ;battlegroundQueuePosition : Integer - The queue position. |
||
⚫ | |||
− | + | ;timeInQueue : Integer - Milliseconds this player has been waiting in the queue |
|
+ | |||
+ | == Example == |
||
+ | You queue up for Arathi Basin and Alterac Valley. |
||
+ | |||
+ | x = GetBattlefieldTimeWaited(1); # Arathi Basin |
||
+ | |||
+ | y = GetBattlefieldTimeWaited(2); # Alterac Valley |
||
+ | |||
+ | As soon as the join message appears, that slot is "empty" (returns 0) but they are not reordered, queuing up again will use the lowest slot available. |
Revision as of 01:28, 6 July 2008
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
timeInQueue = GetBattlefieldTimeWaited( battlegroundQueuePosition );
Get time this player's been in the queue in milliseconds
Function Parameters
Arguments
- battlegroundQueuePosition
- Integer - The queue position.
Returns
- timeInQueue
- Integer - Milliseconds this player has been waiting in the queue
Example
You queue up for Arathi Basin and Alterac Valley.
x = GetBattlefieldTimeWaited(1); # Arathi Basin
y = GetBattlefieldTimeWaited(2); # Alterac Valley
As soon as the join message appears, that slot is "empty" (returns 0) but they are not reordered, queuing up again will use the lowest slot available.