Jump to content

Torulo

Member
  • Posts

    1
  • Joined

  • Last visited

Torulo's Achievements

  1. I'm not any lua expert as i'm walking my first steps in that matter (i'm C# Unity developer) but i managed to solve the same issue, as i wanted to make a special container for ammunition only. On your container item script you need to add "AcceptItemFunction = AcceptItemTool" (Custom function called on each item transfer, in this case i've created AcceptItemTool). Add that function with a code similar to this on your client side, which will return true if the type of the item being transfered is equal to Tool for this case: function AcceptItemTool(container, item) return item:getStringItemType() == "Tool" end
×
×
  • Create New...