Jump to content

Recommended Posts

Hello! I'm very sorry for the inconvenience.
I am creating a character for DST.
I want to make the character unable to eat meat, something like Wormwood. I'm quite a novice so I don't know how to look at the code of characters that are already part of the game.
Any help would greatly appreciate it.

Link to comment
https://forums.kleientertainment.com/forums/topic/119823-help-food-type/
Share on other sites

putting this in your master_postinit "should" make them vegetarian
  if inst.components.eater ~= nil then
        inst.components.eater:SetDiet({ FOODGROUP.VEGETARIAN }, { FOODGROUP.VEGETARIAN })
    end
(P.S. to find this, go to programfiles86>steam>steamapps>common>dontstarvetogether>data>databundles>prefabs>wurt)

18 hours ago, Grymlahv said:

putting this in your master_postinit "should" make them vegetarian
  if inst.components.eater ~= nil then
        inst.components.eater:SetDiet({ FOODGROUP.VEGETARIAN }, { FOODGROUP.VEGETARIAN })
    end
(P.S. to find this, go to programfiles86>steam>steamapps>common>dontstarvetogether>data>databundles>prefabs>wurt)

It works wonderfully, thank you very much! <3 :love_heart:
 

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