I've a little question, does Items have a OwnerID?
i tried to get it, but ends up with NULL
Code i did:
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!