Thread: Unit questions
View Single Post
11/05/14, 08:19 PM   #1
Maverick827
Join Date: Aug 2014
Posts: 6
Unit questions

I'm looking for a way to do the following:

1. Get the name of the unit you currently have tab targeted. I know GetUnitName('reticleover') gets the name of the unit you have your reticle/cursor/focus on, but that's unfortunately not what I need. When you target an enemy and hit tab, you get the box with the four little corners around it filled in white. If you look away, the corners are no longer filled in. I need to get the name of that unit, in this state, if possible.

2. Whether or not this unit is in a veteran dungeon/trial. Now that we have dungeon scaling, GetUnitVeteranRank and IsUnitVeteran doesn't necessarily indicate whether or not the dungeon mode itself is set to veteran. I tried IsUnitUsingVeteranDifficulty on trash mobs in a veteran dungeon, but it was false. Maybe it only works for bosses? Or maybe it just doesn't work. There's a SetVeteranDifficulty method, but not GetVeteranDifficulty, unfortunately.

Thanks!
  Reply With Quote