Jump to content

How can remove multiple items Please Help


ProjectSky

Recommended Posts

You mean the ingredients in a recipe?

Thank you for your reply.

 

I just want to access the player's inventory, then remove specific number of items

 

Code like this

function Removeitems()  local RemoveItem = getSpecificPlayer(0):getInventory():FindAndReturn("Axe");         getSpecificPlayer(0):getInventory():Remove(RemoveItem);          getPlayer():getInventory():AddItems("Base.Axe", 3);--Add three Axe to the player's inventory.end

I want to know if there is no like a "Additems" function. used to simultaneously remove multiple items

 

Sorry, my English is not so good.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...