Close
Showing results 1 to 9 of 9
  1. #1

    Default Addon development question

    Hey all

    I am wondering if there is a way in .lua to get what direction your character is facing. I am looking at writting an add on that will tell me like when one of my toons is backwards and hence has no line of site. Any ideas?

    Thanks
    Demmandred and the Forsaken

    Pally-Lock-Priest-Mage

    Gurubashi-Horde



    p.s. I do read the Wheel of Time

  2. #2

  3. #3

    Default

    I don't see one for getting the angle directly, but if the character is moving you could use GetPlayerMapPosition() at two points in time and compute the angle from that. It sounds like you want to be able to tell when you're standing and nuking, so that may not work for what you need.
    WowVoiceBox - Free speech recognition program designed for multiboxers!

    Retired Multi-boxer

  4. #4

    Default

    I know nothing about building addons... with that said:

    Sounds to me like "getting the characters direction" is a bit complex for what you are wanting. Why not just figure some way to pass the "No Line of Site" or "facing the wrong direction" message that pops up on the screen to your main toon? This would probably be a shorter route to what you want.

  5. #5

    Default

    What I am trying to get to is something like TomTom where I would have an arrow over their heads telling me which way I need to point them to have them facing the party leader. This way if it was like 180 degrees I could like turn it red so it would grab my attention. Thanks for all the useful posts
    Demmandred and the Forsaken

    Pally-Lock-Priest-Mage

    Gurubashi-Horde



    p.s. I do read the Wheel of Time

  6. #6

    Default

    QuestHelper displays a directional arrow.. you might dig into the code there and see if you can re-tool it a bit for your purposes. Offhand, it seems like that with some of the mini-map ping code in the forums here could maybe get you pointed in the right direction (so to speak...)

    edit::
    just checked out questhelper over on Curse and noticed this:
    How do get that 3D arrow pointing where to go?

    That arrow is part of Cartographer Waypoints. It should appear automatically as long as Cartographer is installed and running, and you haven't turned off that feature.
    So, check out Waypoints too!

  7. #7

    Default

    Yes, I would suggest Cartographer Waypoints.

    They have figured out how to determine which way you are facing.
    [align=center]|- The Dread Pirates -|
    |- US Blackrock Horde -|[/align]

  8. #8

    Default

    Thanks guys
    Demmandred and the Forsaken

    Pally-Lock-Priest-Mage

    Gurubashi-Horde



    p.s. I do read the Wheel of Time

  9. #9

    Default

    Not sure if you found this or not, but this was on the wiki at the bottom of the api page. It's a user defined function.
    http://www.wowwiki.com/GetPlayerBearing

Similar Threads

  1. .Net Development (Specifically C# and ASP.NET)
    By Redbeard in forum Off-Topic
    Replies: 18
    Last Post: 03-13-2009, 05:04 PM
  2. Addon Question, Limit addon to one character?
    By delafoo in forum Macros and Addons
    Replies: 1
    Last Post: 02-15-2009, 10:35 PM
  3. Development servers?
    By Tdog in forum General WoW Discussion
    Replies: 8
    Last Post: 11-12-2008, 01:35 AM
  4. Addon Question
    By Silly Gooooose in forum Macros and Addons
    Replies: 1
    Last Post: 05-10-2008, 01:43 PM
  5. Community Development Area / Addon Requests
    By Djarid in forum Macros and Addons
    Replies: 0
    Last Post: 04-03-2008, 07:38 AM

Posting Rules

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