How can I go about enumerating a PlayerCorpse's items?
this doesn't work, and corpse.parentEnt returns the player items not the corpse itemsCode:foreach(PlayerCorpse corpse in Resources.FindObjectsOfTypeAll<PlayerCorpse>()) { var a = corpse.loot; var b = corpse.inventory; var c = corpse.itemList; }
Get PlayerCorpse items
Discussion in 'Rust Development' started by nivex, Nov 21, 2015.