Hey there. I tried to replace the item gathered in OnDispenserGather, but it didnt seem to work. So I did the following :
I feel dirty for doing that, isnt there a better way ?Code:Item item2 = ItemManager.CreateByName("meat.boar", (int)Mathf.Round(RandomQuantity(1,4,1))); item.info = item2.info; item.amount = item2.amount; item.contents = item2.contents;
Proper way to replace item in OnDispenserGather ?
Discussion in 'Rust Development' started by Yatta, Jul 14, 2016.
