PLAYER_CHANGED_TARGET for target acquisition
I want to update my (oUF) frames each time the target changes or something is targeted in the first place. Initially I thought I could use the PLAYER_TARGET_CHANGED event for that, but it doesn't fire if you don't have a target and select something for the first time. Is there an event I could hook for that case?
edit: it's the UNIT_TARGET event edit2: to find out which events fire during play, refer to the /eventtrace command |
Quote:
|
Sure, here you go:
Lua Code:
The goal was to hide the target frame power bar for NPCs that don't use power. From testing it seems that they have assigned the power type 1 (i.e. 'RAGE'). |
Thanks mate :)
|
All times are GMT -6. The time now is 12:52 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI