Navigation menu

WoW:API GetPlayerBuffTexture: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
No edit summary
mNo edit summary
Line 3: Line 3:
Retrieve info about a certain player buff of a certain type.
Retrieve info about a certain player buff of a certain type.


  buffTexture = GetPlayerBuffTexture(buffId);
  buffTexture = GetPlayerBuffTexture(buffIndex)


----
----
;''Arguments''
;''Arguments''


:(Number buffId)
:(Number buffIndex)


:;buffId : The id of the buff to retrieve.
:;buffIndex : The index of the buff to retrieve. Can be obtained with [[API GetPlayerBuff|GetPlayerBuff]]


----
----
Line 21: Line 21:
----
----
;''Example''
;''Example''
  icon:SetTexture(GetPlayerBuffTexture(buffIndex));
  icon:SetTexture(GetPlayerBuffTexture(buffIndex))


;''Result''
;''Result''
Anonymous user