• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Detecting Consumable Items or ItemType

Status
Not open for further replies.
Level 22
Joined
Sep 24, 2005
Messages
4,821
Is there a way to detect consumable items or item types? If so how do you do that? Thank you for any help.
EDIT:
Let me rephrase the question, I think that was badly worded.
Is there a way to check if an item or an item type is consumable? Thanks again.
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
If the unit has the item? It's a Boolean comparison, unit has item of type x equal to true

When the items used? Generic - unit uses an item. Condition- item being used equal to x
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
No, I meant something like IsItemConsumable(item or integer item id). I meant a general checking function for units. Something like IsUnitType that can check the type of the unit, I want to check if the item is consumable.
 
Status
Not open for further replies.
Top