WoW:API GetBattlefieldTimeWaited: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API GetBattlefieldTimeWaited to API GetBattlefieldTimeWaited without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  timeInQueue = GetBattlefieldTimeWaited();
{{wowapi}}
  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 ==
;''Returns''
=== Arguments ===
;battlegroundQueuePosition : Integer - The queue position.


:;timeInQueue : Integer - Milliseconds this player has been waiting in the queue
=== Returns ===
;timeInQueue : Integer - Milliseconds this player has been waiting in the queue


----
== Example ==
{{WoW API}}
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.

Latest revision as of 04:45, 15 August 2023

WoW API < GetBattlefieldTimeWaited

timeInQueue = GetBattlefieldTimeWaited( battlegroundQueuePosition );

Get time this player's been in the queue in milliseconds

Function Parameters[edit]

Arguments[edit]

battlegroundQueuePosition
Integer - The queue position.

Returns[edit]

timeInQueue
Integer - Milliseconds this player has been waiting in the queue

Example[edit]

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.