## Interface: 20300
## Title: TargetSound
## Notes: Plays a sound upon gaining or losing target.
local f = CreateFrame("Frame")
if UnitExists("target") then
if UnitIsEnemy("target", "player") then
elseif UnitIsFriend("player", "target") then
Will work with any and all unitframe addons (or even with no unit frames at all), and won't require you to edit addon files every time the addon is updated.
Where would I put these 2 Files once created? I dropped them right insde the Pitbull folder, but I still dont have any sounds while switching targets. Thanks for the help!