On Item Pickup?
Discussion in 'Rust Development' started by AnExiledGod, Jun 29, 2015.
-
There is already hook called OnItemPickup for you thing. Also this plugin already use it - http://oxidemod.org/plugins/gather-manager.675/
-
Well shit, it wasn't in the documentation and I was just going off of that...
[DOUBLEPOST=1435646537,1435633122][/DOUBLEPOST]Doesn't seem to work for me.
Nothing is put in console when I pickup an AK and a hatchet.Code:void OnItemPickup(BasePlayer player, Item item) { Puts("On Pickup is called."); }
-
Ah, you mean pickup droped item, i thought when you pickup wood/stones/cloth what placed on groud. So then needed another hook for this, i'm not sure if it exists. Sorry for misinformation.
