Guest User

DropItem

a guest
Feb 28th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local DropItem = inst.components.inventory.DropItem
  2. inst.components.inventory.DropItem = function( self, item, wholestack, randomdir, pos )
  3. if item ~= nil and item:HasTag("bkessentialitem") then
  4. self:Equip( inst )
  5. return false
  6. end
  7.  
  8. return DropItem( self, item, wholestack, randomdir, pos)
  9. end
Advertisement
Add Comment
Please, Sign In to add comment