WoW:API CancelPlayerBuff: Difference between revisions
Jump to navigation
Jump to search
CancelPlayerBuff -Documentation by Voratus-
No edit summary |
(Fixed error with buffIndex/buffId) |
||
Line 8: | Line 8: | ||
;''Arguments'' | ;''Arguments'' | ||
:;buffIndex : The | :;buffIndex : The index of the buff to remove. Can be obtained with [[API GetPlayerBuff|GetPlayerBuff]] | ||
---- | ---- | ||
;''Example'' | ;''Example'' | ||
CancelPlayerBuff(0) | CancelPlayerBuff(GetPlayerBuff(0,"HELPFUL")) | ||
;''Result'' | ;''Result'' |
Revision as of 11:42, 14 February 2006
Removes a specific buff from the player.
CancelPlayerBuff(buffIndex);
- Arguments
- buffIndex
- The index of the buff to remove. Can be obtained with GetPlayerBuff
- Example
CancelPlayerBuff(GetPlayerBuff(0,"HELPFUL"))
- Result
Removes the first (right-most in the default UI) buff from the player.
- See Also