CatalystWtrclr Posted July 13, 2015 Share Posted July 13, 2015 hi all. i came again with my logs i have a simple idea - to create item which allows player to replace 1 log for 4 twigs. But it won't be a container. Player should drag item on sawmill structure, and after 5 sec (and animation +sound) building should remove log and spawn 4 twigs near itself (like a pigking with his gold) problem in scripts. i tried to edit meatrack, firepit, pigking prefabs and saw there "components". Dryable, Cooker etc. For pigking's items using component Tradable. But i can't understand how i can add new component for "log" without editing of original files. Should i create new component for this or it needs simple actions in prefab?Building has 3 animations (idle, working (spinning saw) and burnt) Link to comment Share on other sites More sharing options...
CatalystWtrclr Posted July 13, 2015 Author Share Posted July 13, 2015 i can use local function sawif item or item.prefab == "log" then... Will it works not for container? 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.