+ Reply to Thread
Results 1 to 4 of 4

Thread: How to get the Out of range/out of LoS information?

  1. #1
    General of Telara
    Join Date
    Apr 2011
    Posts
    944

    Default How to get the Out of range/out of LoS information?

    I'm assuming it's not possible currently but just in case...

    I'm currently working on some custom raid frames (with some click-to-heal stuff), but can't figure how to detect when a raid member gets out of range/LoS (like raid frames are showing it), to be able to display it in a similar way than on basic raid frames.

    Any suggestions on how to do it?

  2. #2
    Champion Lorandii's Avatar
    Join Date
    Jun 2011
    Posts
    516

    Default

    Not sure how well this would work, but you can try it. Check the appropriate Event.Combat.?? events you want to use. If you have the Ability or AbilityName AND Caster, but Target == nil, then chances are good the cast failed due to LoS, range, or something like that.

    Ability + Caster - Target = failed.

    Of course, if you can target someone who is out of LoS or range, the cast still fails and I'm out of ideas.

  3. #3
    Telaran
    Join Date
    Oct 2011
    Posts
    86

    Default

    Quote Originally Posted by Lorandii View Post
    Not sure how well this would work, but you can try it. Check the appropriate Event.Combat.?? events you want to use. If you have the Ability or AbilityName AND Caster, but Target == nil, then chances are good the cast failed due to LoS, range, or something like that.

    Ability + Caster - Target = failed.

    Of course, if you can target someone who is out of LoS or range, the cast still fails and I'm out of ideas.

    Thats not even an option with clicking macros. Would be hell to target the person and then use the click frames. We need details.aggro and details.los
    I already wrote Rift Healer addon and could use both those identifiers badly.

  4. #4
    General of Telara
    Join Date
    Apr 2011
    Posts
    944

    Default

    Quote Originally Posted by Lorandii View Post
    Not sure how well this would work, but you can try it. Check the appropriate Event.Combat.?? events you want to use. If you have the Ability or AbilityName AND Caster, but Target == nil, then chances are good the cast failed due to LoS, range, or something like that.

    Ability + Caster - Target = failed.

    Of course, if you can target someone who is out of LoS or range, the cast still fails and I'm out of ideas.
    Yeah need something reliable to bother displaying it.

    Hopefully we can get some additionnal fields in Inspect.Unit.Detail soon that would make it easy.

+ Reply to Thread

Bookmarks

Posting Permissions

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