Check if facing target menu

User Tag List

Results 1 to 6 of 6
  1. #1
    AleksaMaster's Avatar Member
    Reputation
    1
    Join Date
    Mar 2018
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Check if facing target

    Is it possible in lua to check if I am facing target? Or if that is not possible, is there any way to see if spell can be used which takes into consideration facing, so it returns false if not all conditions for using spell are true?

    Check if facing target
  2. #2
    NessK's Avatar Member
    Reputation
    13
    Join Date
    Jan 2015
    Posts
    100
    Thanks G/R
    2/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you running an advanced unlocker ? (Firehack)

  3. #3
    TheBovice's Avatar Member
    Reputation
    1
    Join Date
    Mar 2018
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not sure if this is what you're looking for but found this a while back.

    Originally Posted by akeon1 View Post
    that is fairly straight forward, just use either my (if you have a copy of it still - was in the \external folder) or stinkytwich's ObjectManager.lua

    Or depending on your level, you can work out how to insert it in.
    These are the functions - load them in your library.

    Code:
    ProbablyEngine.condition.register("facing", function(unit, target)
    local unitExists = UnitExists(unit)
    local targetExists = UnitExists(target)
    if not unitExists or not targetExists then
    return
    end
    if FireHack then
    if ObjectIsFacing(unit, target) then
    return true
    else
    return false
    end
    else
    if Ake.listenerNotFacingTarget == true then
    return false
    else
    return true
    end
    end
    end)
    and

    Code:
    Ake.listenerNotFacingTarget = nilProbablyEngine.listener.register("UI_ERROR_MESSAGE", function(...)
        local args = ...
    
        if args == "Target needs to be in front of you." and UnitExists("target") then
            Ake.listenerNotFacingTarget = true
        else
            Ake.listenerNotFacingTarget = false
        end end)
    This is the condition used in the CR:
    "player.facing(target)"

    Example usage:
    { "Wind Shear", { "modifier.interrupt", "target.interruptAt(30)", "player.facing(target)" } },
    Check if you're facing the target?

  4. #4
    AleksaMaster's Avatar Member
    Reputation
    1
    Join Date
    Mar 2018
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am not using Firehack nor probably engine. I wanted to know if it is possible to do it in lua without unlocker, but after some googling I found out it is not possible.

  5. #5
    androlite83's Avatar Member
    Reputation
    1
    Join Date
    Feb 2011
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is firehack working in 7.3.5 retail version now?

  6. #6
    Humbleguy's Avatar Active Member
    Reputation
    24
    Join Date
    Dec 2019
    Posts
    27
    Thanks G/R
    6/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As lua does not give you position of mobs, you must use some workarounds to check if you are facing target. I can show you some examples:

    - Try to cast a spell, then check for UI errors "you are not facing target".... if you get such message, turn 180 degrees (press A or D for 1 second) and you wll be facing target
    - Use skills that will make you face the target more precisely, such as Mind Flay, Drain Soul, Drain Life.
    - [warlock] use Health Funnel at your voidwalker, It will be always at melee range from the mob and will make you effectively face your target unless you are exactly between mob & pet.
    - There are some quest items that make you face target: Alliance: Orb of Elune -20 yd range, Deepvein's Patch Kit -5 yd range, and horde: Gor'drek's Ointment -20 yd range, Sage's Lightning Rod - Up to 45yd range! , works only at enemies, Deepvein's Patch Kit -5 yd range, Blast Tape Insane range!

Similar Threads

  1. Check if you're facing the target?
    By thrakmar in forum PE Support forum
    Replies: 4
    Last Post: 12-20-2015, 08:43 PM
  2. lua check if target is player
    By Thomja in forum WoW UI, Macros and Talent Specs
    Replies: 6
    Last Post: 01-22-2014, 08:47 AM
  3. Replies: 10
    Last Post: 05-20-2008, 09:45 AM
  4. Checking if your server is online
    By littlesheep in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 12-27-2007, 06:45 AM
  5. check if opp faction is online
    By rudez in forum World of Warcraft Exploits
    Replies: 4
    Last Post: 11-01-2006, 04:30 AM
All times are GMT -5. The time now is 03:31 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search