Yes, make sure you're targeting an NPC character, not a real-life player's character if you want a nil return.
If you wish to check to see if your target (or whatever unit) is the actual "player" unit, then you need to use UnitIsUnit("player", "target")
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh
|