Resource Gathering
I am thinking about resource gathering in the sense of cutting down trees, hitting rocks for minerals etc.
I don't know if this would be the right way of going about this but here is what I am thinking.
My Idea
This is my idea to try and get it working.
Place a tree on a terrain with polymesh physics, link a script that gives the tree a health value and if health <=0 then hide the tree and show a log model.
In the log model link a pickup script so that the log is placed into the inventory.
When my inventory is full then you go back to the storage building and transfer the resources to a storage box.
So I dont run out of trees I was thinking about something like a timer on the tree that once the tree health <=0 then in say 40 mins the tree model is shown again (working on a 20 mins day cycle and 20 mins night cycle)
Problem
With me been new to this (and so many others on here) I would love to know where to start with my LUA scripting, I did purchase the standard version some time ago but I wanted to try to get my head around doing this in lua before I venture into the C++ side of things..
-------------------------------------------------------------------------------------------------------------
Base building
I just thought I would share my idea for simple base building as well.
Basically place the buildings on the map and hide them in the base area, once the crafting menu has been entered then I can search to see if enough resources have been collected and if so then the the base building can be created, this means taking away the resources from the inventory and showing the building.
The fixed locations of the buildings may take away some element of enjoyment but its a learning curve
Thank you in advance