ProjectSky Posted February 2, 2016 Share Posted February 2, 2016 How can remove multiple items from the player's inventory? I know that you can use to add multiple items "AddItems" But I use the "Remove" can only remove a inventory item Anyone have any good way? Link to comment Share on other sites More sharing options...
Hydromancerx Posted February 2, 2016 Share Posted February 2, 2016 You mean the ingredients in a recipe? Link to comment Share on other sites More sharing options...
ProjectSky Posted February 3, 2016 Author Share Posted February 3, 2016 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 thisfunction 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.endI 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now