CatalystWtrclr Posted July 13, 2015 Share Posted July 13, 2015 (edited) 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) Edited July 13, 2015 by CatalystWtrclr Link to comment https://forums.kleientertainment.com/forums/topic/56127-sawmill/ Share on other sites More sharing options...
CatalystWtrclr Posted July 13, 2015 Author Share Posted July 13, 2015 (edited) i can use local function sawif item or item.prefab == "log" then... Will it works not for container? Edited July 13, 2015 by CatalystWtrclr Link to comment https://forums.kleientertainment.com/forums/topic/56127-sawmill/#findComment-653940 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