In case you missed that step earlier, make your to set up your resource types as explained in Setup. Then, create resource sources as follows:
- See Creating Units (Appearance only; can be a standard actor).
- Add an
RTSResourceSourceComponent
. - Set the resource type and maximum and current resources of the source.
- Set the gathering factor for increasing the yield of any gatherers (e.g. golden minerals in StarCraft).
- If you want gatherers to enter the resource source (e.g. Refinery in StarCraft), check Gatherer Must Enter, set the Gatherer Capacity, and add an
RTSContainerComponent
. In that case, add aRTSContainableComponent
to all gatherers as well.