1. #1

    target question in wow api

    I am looking to write something simple, yet I can't get it done.

    Code:
    if ( player.target == player) then
    return some text
    end
    but I can't find the syntax for it.

  2. #2
    This should do the trick
    Code:
    if UnitIsUnit("target","player") then
         return some text
    end

    Or was it the "return some text" that was causing problems?

  3. #3
    no it wasn't the return some text.

    I want to be able to customize either "player" and change it with raid1, raid2, party1, party2 etc....

    edit. thanks that will work as I wish.
    Last edited by Kreeshak; 2016-07-09 at 01:41 PM.

Posting Permissions

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