[Pogamut-list] UnrealID

jakub.gemrot pogamut-forum at artemis.ms.mff.cuni.cz
Tue May 20 15:41:34 CEST 2008


Re: UnrealID
Check out the class ItemCathegories:


You will find something like this:

cathegories.put("ShieldGun", new ItemCathegory(MessageType.WEAPON, ItemType.SHIELD_GUN, new int[]{1, 40, 100, 0, 0, 0})); // int[5] -> initial alternative ammo
cathegories.put("ShieldGunPickup", new ItemCathegory(MessageType.WEAPON, ItemType.SHIELD_GUN, new int[]{1, 40, 100, 0, 0, 0}));

It contains many identificator but not the whole one. To get the name of the item use it's static method ItemCathegories.getNameFromClass(item.class);
You have to use class of the item not it's id.

Jakub

> Hello,
> is there any document, which contains all the UT objects and their UnrealIDs? I mean something like this:
> 
> healthpack(25), UnrealID = "xSmallHealth"
> shock rifle, UnrealID = "xShockRifle"
> red team flag base, UnrealID = "xRedTeamFlagBase"
> 
> etc.
> 
> I need to get access to some of the objects through these UnrealIDs.
> 
> Thx, Vojtěch Osvald

----

Reply Link: <https://artemis.ms.mff.cuni.cz/pogamut/tiki-view_forum_thread.php?forumId=3&comments_reply_threadId=201&comments_parentId=200&post_reply=1#form>





More information about the Pogamut-list mailing list