Replies: 1 comment
-
First you'd need to know which inventory item you're interested in. Often times that is the currently selected item, which can be obtained by calling var property_value = ctrl_inventory.get_selected_item().get_property(<property_name>) Alternatively, you can loop through all the items and select any that you're interested in: for item in ctrl_inventory.inventory.get_items():
var property_value = item.get_property(<property_name>)
# etc. And if you want for ALL the properties of an item you can call func list_properties(item: InventoryItem):
var properties = item.get_properties()
for property in properties:
print(item.get_property(property)) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
how to extract the property text etc of certain items from crlt inventory as string,var,something. question... pleas
Beta Was this translation helpful? Give feedback.
All reactions