D4rk0 Posted July 15, 2014 Share Posted July 15, 2014 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? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.