• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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