RSS

Четверг, 14.11.2024, 06:22
Главная » WoW API » API Функции » Поля сражений »

GetBattlefieldPosition

[ править ]
Returns the position of a battleground team member not in the player's group.
[клоны]
Returns the position of a battleground team member not in the player's group. Still used in the default UI but no longer useful; as all team members in a battleground match are automatically joined into a raid group. See GetPlayerMapPosition() instead.

Signature:
Code
unitX, unitY, name = GetBattlefieldPosition(index)

Arguments:
  • index - Index of a team member (between 1 and GetNumBattlefieldPositions()) (number)

Returns:
  • unitX - Horizontal (X) coordinate of the unit's position relative to the zone map (0 = left edge, 1 = right edge) (number)
  • unitY - Vertical (Y) coordinate of the unit's position relative to the zone map (0 = bottom edge, 1 = top edge) (number)
  • name - Name of the unit for display on the map (string)

Также смотрите: Поля сражений , Battlefield functions
Ссылки: http://wowprogramming.com/docs/api/GetBattlefieldPosition