RedMattis Posted April 22, 2015 Share Posted April 22, 2015 My character only "eats" blood and that is her only food preference. I notice that in the current updates she is suddenly an omnivore who eats only normal stuff. Her foodprefs seem unaltered. I queried the component and it returned only "BLOOD" however.[00:00:25]: BLOOD Also, in her blood items:inst:AddComponent("edible") inst.components.edible.ismeat = true inst.components.edible.foodtype = FOODTYPE.BLOOD Link to comment https://forums.kleientertainment.com/forums/topic/53061-right-way-to-do-foodprefs-nowadays/ Share on other sites More sharing options...
DarkXero Posted April 22, 2015 Share Posted April 22, 2015 inst.components.eater:SetDiet({FOODGROUP.OMNI}, {FOODTYPE.BLOOD}) Link to comment https://forums.kleientertainment.com/forums/topic/53061-right-way-to-do-foodprefs-nowadays/#findComment-631246 Share on other sites More sharing options...
RedMattis Posted April 22, 2015 Author Share Posted April 22, 2015 inst.components.eater:SetDiet({FOODGROUP.OMNI}, {FOODTYPE.BLOOD})Thanks. Managed to stumble upon the right post, but that is indeed how I solved it. well, except with "eater:SetDiet({FOODTYPE.BLOOD, FOODTYPE.MEAT})" It bugged out when {} where separated (played eating animation, but the face vanished and the item wasn't consumed). Really weird. Link to comment https://forums.kleientertainment.com/forums/topic/53061-right-way-to-do-foodprefs-nowadays/#findComment-631276 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