stasio30 Posted July 13, 2017 Share Posted July 13, 2017 Hello I am working on a character to DST but unfortunately I can't find a way to make him poop while eating local function OnEat(inst, food) if food.components.edible and food.components.edible.foodtype == "VEGGIE" then --poop local poo = SpawnPrefab("poop") poo.Transform:SetPosition(inst.Transform:GetClosestInstWithTag("player", inst, MyRadius)()) end end local function fn(Sim) inst:AddComponent("eater") inst.components.eater:SetOmnivore() -- all standard foodtypes besides wood, elemental and horrible --add horrible inst.components.eater.strongstomach = true -- can eat monster meat inst.components.eater:SetOnEatFn(OnEat) return inst end I tried to use part of the Pigman code but it does not work. I would be really grateful if someone would give me some help c: (Sorry for my bad english) Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now