D4rk0 Posted July 15, 2014 Share Posted July 15, 2014 (edited) Hi, So I'm trying to create some custom foods and I have a problem. I include the:table.insert(inst.components.eater.foodprefs, "STEAK")for my custom character, I have the onEat function:if food and food.components.edible and food.components.edible.foodtype == "STEAK" then--do stuffand I obviously also have the steak prefab which is edible. inst:AddComponent("edible") inst.components.edible.foodtype = "STEAK"Also is it possible to alter hud.xml so that it would recognize a new element added to hud.tex? Edited July 15, 2014 by D4rk0 Link to comment https://forums.kleientertainment.com/forums/topic/38490-foodprefs-compoment-in-rog-help-please/ 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