#4
23rd Mar 2020 at 12:05 AM
Last edited by omglo : 23rd Mar 2020 at
1:23 AM.
Posts: 3,001
Thanks: 896 in 4 Posts
6 Achievements
I linked to the other object because as far as I know, there is no tutorial. You'll rarely find BHAV tutorials about something as specific as what you're asking, because coding is such a broad subject that it was more efficient to focus on teaching general skills. When you're modding, you'll find little bits of information scattered across several tutorials and old threads that point you in the right direction, and you use those, along with studying the code in other similar objects to achieve what you're making.
I had made a similar item in the past, and I've stripped the code down to simplify it to an object that Sims pick up, do an eating animation, filling their hunger bar in the process, then the object disappears. You can study that or clone it to create your own. The tutorial that you have showed you the location of thee animations and how to link them, because I suspect the ones that my object use won't work for your food.
ETA: I forgot to mention this cotton candy is in appliances misc.