Jump to content

Recommended Posts

Posted (edited)

Good day,

Looking how to get an ItemId object from an int value of the item Id, if anyone knows how?

I looked at the UIDATA_ITEM, and doesn't appear to have a native function there, wondering if anyone knows of a function existing.

More Info that may help understand why I'm asking:
 

I'm trying to use native static function string GetItemTextureName(ItemID Id);

But requires type ItemId, and not int. 

So trying to find a way to to convert int value to the corresponding ItemId.


Cheers
YulRun

Figured it out, Answer is:

Built in function: GetItemID(Int id) returns ItemID

Edited by YulRun
Posted (edited)

For HF chronicles use class'UIDATA_ITEM'.static.GetItemTextureName(GetItemID( X )), where Х is your int. 

Upd: I'm sorry, I didn't read to the end of the thread and there was already an answer. )))

Edited by Rolo
Guest
This topic is now closed to further replies.


×
×
  • Create New...