[question] WoW API LoS menu

User Tag List

Results 1 to 3 of 3
  1. #1
    bjorno43's Avatar Master Sergeant
    Reputation
    50
    Join Date
    Mar 2010
    Posts
    70
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [question] WoW API LoS

    Is there some API / lua code that could possible check if my current target is in Line of Sight or not without having to cast first? Been searching for something that could do this for hours now but just couldn't find anything telling me it's possible or not.

    On a side note: I was a bit surprised that there isn't a separate section on Ownedcore for addon development :P

    [question] WoW API LoS
  2. #2
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    World::Intersect would be what you're looking for, but that isn't lua...

  3. #3
    bjorno43's Avatar Master Sergeant
    Reputation
    50
    Join Date
    Mar 2010
    Posts
    70
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well it seems LoS works serverside. The client simply doesn't have the information (or it's not accessable) untill some serverside event occurs (like a spellcast). So I think it's impossible with a regular addon.

    edit:

    API UnitInRange
    Returns 1 if the unit is in range (40yds) and "Line of Sight" of most helpful spells, nil otherwise.

    I tried this, but it seems to fail at the Line of Sight part. When my target stays in range but walks out of line of sight, it still returns 1
    Last edited by bjorno43; 03-02-2012 at 02:24 PM.

Similar Threads

  1. Question about Fetching WoW API AH data
    By arigox in forum World of Warcraft General
    Replies: 2
    Last Post: 01-05-2016, 03:03 PM
  2. [Question] How send a WoW API Call
    By unrealshape in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 01-28-2012, 02:23 PM
  3. [Question] How send a WoW API CAL
    By unrealshape in forum WoW Bots Questions & Requests
    Replies: 0
    Last Post: 01-28-2012, 12:31 PM
  4. [Question] WoW Mapeditor
    By Hiselor in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 10-09-2007, 04:54 AM
  5. [QUESTION] Wow closes afther a char-->creature dbc modelledit
    By Soulsedge in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 09-06-2007, 02:25 PM
All times are GMT -5. The time now is 08:08 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search