Thread Tools Display Modes
12-04-09, 03:40 PM   #1
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 331
WoW Api - Critter?

Is there a way to return the value of "critter" for any wow api functions?
  Reply With Quote
12-04-09, 04:04 PM   #2
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
I'm not sure what you're asking, could you post some more detail about what you want to do? Do you want to determine whether a unit is a critter? Do you want to get the current localized equivalent of the enUS "critter"?
  Reply With Quote
12-04-09, 04:23 PM   #3
Terranell
Premium Member
Premium Member
Join Date: Apr 2006
Posts: 52
Take a look at http://www.wowwiki.com/API_UnitCreatureType perhaps? Should be what you're looking for.

~Terra
  Reply With Quote
12-04-09, 04:25 PM   #4
Folji
A Flamescale Wyrmkin
 
Folji's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 136
Yeah. UnitCreatureType would be the stuff you want to figure this out, providing what you're looking for is a way to either identify the target as a critter, or make something happen when targeting one.

local squishy = UnitCreatureType("target")
if (squishy == "critter") then
-- Whatever should happen here
end

(And of course a self:RegisterEvent("UNIT_TARGET") to make it actually check for the event. )
  Reply With Quote
12-04-09, 04:30 PM   #5
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 331
Originally Posted by Terranell View Post
Take a look at http://www.wowwiki.com/API_UnitCreatureType perhaps? Should be what you're looking for.

~Terra
That's it ty!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » WoW Api - Critter?


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