Thread Tools Display Modes
11-11-22, 01:09 AM   #1
sirpucna
An Aku'mai Servant
Join Date: Nov 2016
Posts: 33
Class info while in vehicle

When I use UnitClass(unit) while in a vehicle, when I target myself it returns as "Rogue" even though I am not, any way to check what class/name someone is while they are in a vehicle? I guess this info would be useful in BG's
The vehicle i'm in is from the old raid Ulduar during the Wotlk xpac since its easy to test.
  Reply With Quote
11-11-22, 10:53 AM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,323
My guess is you're targeting the vehicle instead of the player. You can't select anyone in a vehicle using target, focus, or even nameplate# as they are untargetable. You need to use either player, party#, or raid# UnitIDs.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
11-12-22, 12:57 AM   #3
sirpucna
An Aku'mai Servant
Join Date: Nov 2016
Posts: 33
cheers, not much info about this stuff, infact posts relating to this was from you back in 2016.

think i'll scrap the idea i had.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Class info while in vehicle


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off