Jump to content

Multiple Items Resultting from Recipe


tommysticks

Recommended Posts

script dont take more results.Some items needed for recipe aren't used in process (in script they have "keep" word) but they are not results.

You must write a new function  in lua to get different result

function AnotherResult(_crafttool,_resultItem,_recipe)  if _recipe =="Rip Bandages" then      getPlayer():getInventory():AddItem("Base.Shotgun")  endendEvents.OnMakeItem.Add(AnotherResult)

This is example,i didnt tested it ,but i use similar function and it works this way

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...