Jump to content

Anyone know how to interact with a corpse that's on the ground other than picking it up?


Drakkar77

Recommended Posts

 

22 hours ago, Pandorea said:

What is it you want to do with the corpse?

Hydrocraft has recipes that uses corpses. The recipe in question skins the corpse so that you can butcher it and then harvest the bones. But the "from the ground" part of the recipe doesn't work. It only recognizes the corpse once you've picked it up. If it's on the ground it ignores the corpse whether you've dropped it there or not.

Link to comment
Share on other sites

garbage bags have the same capacity as the weight of a corpse and once you put a corpse in it you can use the from ground recipe.

 

Just use that item or copy the item and call it a body bag, then return that item as the result of  the craft, then in the OnCreate section of the recipe call a function to give you the item you want via lua.

 

the advantage here is you can give back the container item each time then using lua you can check the players skills and give them a variable amount of other stuff

 

You will also need to add some code for OnTest to make sure that the bodybag/garbage back is empty or at the very least empty the items out of the back in the OnCreate code. since you are looping though the items anyway in that recipe.

 

at least thats my work around there is better ways to do it

Edited by Xyberviri
Link to comment
Share on other sites

  • 3 weeks later...

@Xyberviri Thank you for the reply. Having to pick up the corpse in the first place is the thing that's the issue. Once it's picked up, then the time used to pick it up is wasted. The point is to avoid that and to do a recipe with the corpse that's on the ground. It's world item so most likely this is a limitation that would be hard to overcome.

Link to comment
Share on other sites

  • 3 months later...

I don't know if you're still looking for a solution, but Cannibalism Core allows players to butcher the bodies directly on the ground and get the meat in the inventory. Maybe you can find a way looking at their code :)

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