1. #1

    WeakAura trigger: "Hide aura if target myself"

    Is there a way to do it in WA? I've tried a couple methods but I don't seem to work.
    If anyone can give a helping coding hand here I'll be thankful.

    Basically I want a simple trigger that checks if I'm targeting myself and therefore keep the aura/texture hidden unless is anyone else.

    Thanks
    Link

  2. #2
    Hey Link, I must go to work now, but maybe this helps you:


    There is a trigger that does it vice versa; It only shows up if you target yourself.

    Event Type: Status
    Check On...: Event(s)
    Event(s): PLAYER_TARGET_CHANGED
    Custom Trigger:
    function()
    return UnitIsUnit("target","player")
    end
    Custom Untrigger:

    function()return true end

    Try to change the Custom untrigger to
    function()return false end

    Normally it should do the job

  3. #3
    Deleted
    Custom trigger should be:
    Code:
    function()
    return UnitExists("target") and not UnitIsUnit("target", "player")
    end
    Which basically means "show if you have a target and the target is not the player".
    The untrigger should be the negation of that:
    Code:
    function()
    return not UnitExists("target") or UnitIsUnis("target", "player")
    end
    Hide if you don't have a target or the target is the player.

  4. #4
    Thank you guys, I think that did the trick for now... thank you very much

  5. #5
    Did you try both? Would be interesting to know for future questions.

  6. #6
    Deleted
    This is a bit outdated post. but i tried both things. and it did not work.

    What i did is make a custom trigger Event type: Event "PLAYER_TARGET_CHANGED"

    and used custom trigger

    function()
    if(UnitExists("target")) then
    return false
    else
    return true
    end;
    end
    I am sharing in case anybody else is looking for this. cause i could not find a way to do this so i had to figure it out myself.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •