Jump to content

Recommended Posts

@johnfs723,

inst:ListenForEvent( "oneatsomething",  function(inst, data)   if data.food.prefab=="meat" then inst.components.sanity:DoDelta(-50)  end  end )
if u dont want to define specific penalties for specific types of meat, but just one penalty for all meat, use data.food:HasTag("meat") instead. see meats.lua in the gamecode for the types of meat and the tags u might want to use. Edited by Seiai

@johnfs723,

inst:ListenForEvent( "oneatsomething",  function(inst, data)   if data.food.prefab=="meat" then inst.components.sanity:DoDelta(-50)  end  end )
if u dont want to define specific penalties for specific types of meat, but just one penalty for all meat, use data.food:HasTag("meat") instead. see meats.lua in the gamecode for the types of meat and the tags u might want to use.

 

 

thanks so much!!

 

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