WoW:API GetBattlefieldFlagPosition: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API GetBattlefieldFlagPosition to API GetBattlefieldFlagPosition without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Get data from the custom battlefield scoreboard columns
  flagX, flagY, flagToken = GetBattlefieldFlagPosition(i);
 


  GetBattlefieldFlagPosition(index)
== Parameters ==
== Parameters ==
=== Arguments ===
=== Arguments ===


:;index : Integer - Index to get the flag position from
:;index : Integer - Index to get the flag position from
=== Returns ===
:;x, y : Integer - Position of the flag on the map.
:;token : String - Name of flag texture in Interface\WorldStateFrame\
:: In Warsong Gulch the names of the flag textures are the strings "AllianceFlag" and "HordeFlag".
----
----
=== Details ===
=== Details ===
Used to position the flag icon on the world map and the battlefield minimap. This appears to only be used inside [[Warsong Gulch]] for positioning where somebody is carring the enemy flag.
Used to position the flag icon on the world map and the battlefield minimap.


----
----
__NOTOC__
__NOTOC__
{{wowapi}}
{{wowapi}}

Latest revision as of 04:45, 15 August 2023

 flagX, flagY, flagToken = GetBattlefieldFlagPosition(i);


Parameters

Arguments

index
Integer - Index to get the flag position from


Returns

x, y
Integer - Position of the flag on the map.
token
String - Name of flag texture in Interface\WorldStateFrame\
In Warsong Gulch the names of the flag textures are the strings "AllianceFlag" and "HordeFlag".

Details

Used to position the flag icon on the world map and the battlefield minimap.


WoW API < GetBattlefieldFlagPosition