Items have OwnerID?
I've a little question, does Items have a OwnerID?

i tried to get it, but ends up with NULL

Code i did:

                        foreach (StorageContainer storage in Resources.FindObjectsOfTypeAll().Where(storage => storage.name.Contains("fuelstorage"))) {
                            ItemContainer inventory = storage.inventory;
                            if (inventory == null) continue;
                            List list2 = inventory.itemList.FindAll((Item x) => x.info.itemid == 1568388703);
                            var getItemOwnerID = "";
                            foreach (Item current in list2) {
                                getItemOwnerID = current.GetOwnerPlayer();
                            }
                        }​

any ideas?

I try this: Get loot from the Quarry ONLY if the Fuel is in is yours.

Thank you!

I don't think all items do anymore as of a few months ago in Rust.
5c2d88ae4ea06.jpg Wulf
I don't think all items do anymore as of a few months ago in Rust.

Month? Ages. As i remember it was removed at deblog 150-160

Arrow
I've a little question, does Items have a OwnerID?

i tried to get it, but ends up with NULL

Code i did:

 foreach (StorageContainer storage in Resources.FindObjectsOfTypeAll().Where(storage => storage.name.Contains("fuelstorage"))) { ItemContainer inventory = storage.inventory; if (inventory == null) continue; List list2 = inventory.itemList.FindAll((Item x) => x.info.itemid == 1568388703); var getItemOwnerID = ""; foreach (Item current in list2) { getItemOwnerID = current.GetOwnerPlayer(); } }​

any ideas?

I try this: Get loot from the Quarry ONLY if the Fuel is in is yours.

Thank you!

As i remember that function returns actual HOLDER of item, not the owner/creator

P.S. Item can't be held in storage, because its....in storage

ok thank you :)