Hi Support,
I'm happy enough with the UCControler . However I decided not to use the UInventory system but use my own.
I wish to know at runtime which item is in each slot (left and right hand, slot [0] and slot [1]) for all the item sets in the item-set collection on the player. Is there an optimal way to get this information?
So I would use these handles to then be able to set which item-set is active based on changes in my own UI. (E.g. adding a pistol to the characters hand in my inv-UI would find the corresponding item-set number for 'the pistol' and then 'equip-unequip' that item-set during run-time). Run-time access is required since pick-ups/drops might change the order in the item-set.
This I know can be done - I'm hoping you have some helpful tips to achieved this (useful getters?), or even better perhaps have some example code to share. Other general approaches which might be more wise are welcome.
Many thanks,
ps. do items and objects have string ref IDs? E.g. 'My_Assualt_Rifle' is nice and all, but how can this string be used to search / compare items? In other words how would I know if e.g. 'My_Assualt_Rifle' is present in the player inventory during runtime?
I'm happy enough with the UCControler . However I decided not to use the UInventory system but use my own.
I wish to know at runtime which item is in each slot (left and right hand, slot [0] and slot [1]) for all the item sets in the item-set collection on the player. Is there an optimal way to get this information?
So I would use these handles to then be able to set which item-set is active based on changes in my own UI. (E.g. adding a pistol to the characters hand in my inv-UI would find the corresponding item-set number for 'the pistol' and then 'equip-unequip' that item-set during run-time). Run-time access is required since pick-ups/drops might change the order in the item-set.
This I know can be done - I'm hoping you have some helpful tips to achieved this (useful getters?), or even better perhaps have some example code to share. Other general approaches which might be more wise are welcome.
Many thanks,
ps. do items and objects have string ref IDs? E.g. 'My_Assualt_Rifle' is nice and all, but how can this string be used to search / compare items? In other words how would I know if e.g. 'My_Assualt_Rifle' is present in the player inventory during runtime?
Last edited: