Codelyy Posted February 26, 2016 Share Posted February 26, 2016 Basically as the title says, How would I check if any type of food has been cooked? Link to comment https://forums.kleientertainment.com/forums/topic/64816-checking-if-food-is-cooked/ Share on other sites More sharing options...
Mobbstar Posted February 26, 2016 Share Posted February 26, 2016 Unfortunately, there isn't an easy solution to this problem. Here's what you could do, you must decide what's best for your specific case: Keep a list of valid prefabs and check whether X is in that list. (You'd use the prefab names as keys for dummy values.) Use the string library to see whether X's prefab name starts or ends with "cooked". See whether X is edible but not cookable. Link to comment https://forums.kleientertainment.com/forums/topic/64816-checking-if-food-is-cooked/#findComment-727191 Share on other sites More sharing options...
Codelyy Posted February 26, 2016 Author Share Posted February 26, 2016 53 minutes ago, Mobbstar said: Unfortunately, there isn't an easy solution to this problem. Here's what you could do, you must decide what's best for your specific case: Keep a list of valid prefabs and check whether X is in that list. (You'd use the prefab names as keys for dummy values.) Use the string library to see whether X's prefab name starts or ends with "cooked". See whether X is edible but not cookable. I went with the third option checking if the food was edible but not cookable and it worked so thanks Link to comment https://forums.kleientertainment.com/forums/topic/64816-checking-if-food-is-cooked/#findComment-727209 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