Jump to content

Sawmill


Recommended Posts

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)

 

post-674378-0-40497500-1436792538_thumb.

Link to comment
Share on other sites

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.

×
  • Create New...