Jump to content

GetEquippedItemId query


Recommended Posts

Is this fragment on the right track?

 

 

 

Float[] ItemIds
 
Function dz_get_items(Actor aRef)

Form[] Items
Items = PO3_SKSEFunctions.AddAllEquippedItemsToArray(aRef)
 
int i

i = 0

While i < Items.Length

ItemIds[i] = GetEquippedItemId(Items[i])

i = i +1

EndWhile
EndFunction

 

 

 

I wish to fill an array with the itemids of the items in the array created by PO3_SKSEFunctions.AddAllEquippedItemsToArray()

I've read that the itemid is some combination of crc32 of the name and of the baseid, so I guess an array of them would be type float?

And does that mean that they might not be unique? In the scant description of both EquipItembyId and EquipItemEx, it is implied that byId is a way around the extralist issue where EquipitemEx loads the last of the item type in the players inventory.

 

diziet

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...