MidrealmDM Posted September 13, 2014 Share Posted September 13, 2014 I was trying to make a food item that can be cooked/roasted at the camp fire. I created prefabs for the 'food' and 'food_cooked' And then added these lines into the food.lua inst:AddComponent("cookable") inst.components.cookable.product = "food_cooked" When I try to cook the food at the fire, the animation works (Wilson cooks at the fire)but then instead of getting the cooked version Wilson announces "I can't do that."The original food is removed from inventory. Link to comment https://forums.kleientertainment.com/forums/topic/40721-quick-food-question-cookable/ Share on other sites More sharing options...
_Q_ Posted September 13, 2014 Share Posted September 13, 2014 Check if all prefab are working correctly with DebugSpawn command. The second prefab may have some errors that cause this. Link to comment https://forums.kleientertainment.com/forums/topic/40721-quick-food-question-cookable/#findComment-535426 Share on other sites More sharing options...
MidrealmDM Posted September 14, 2014 Author Share Posted September 14, 2014 Check if all prefab are working correctly with DebugSpawn command. The second prefab may have some errors that cause this. Yep - I was so convinced it was the code I didn't bother to check the item.Miss one little thing and it all goes to crud. Thanks again. Link to comment https://forums.kleientertainment.com/forums/topic/40721-quick-food-question-cookable/#findComment-535661 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