Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 735 Bytes

Resources.md

File metadata and controls

9 lines (7 loc) · 735 Bytes

Creating Resource Sources

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:

  1. See Creating Units (Appearance only; can be a standard actor).
  2. Add an RTSResourceSourceComponent.
  3. Set the resource type and maximum and current resources of the source.
  4. Set the gathering factor for increasing the yield of any gatherers (e.g. golden minerals in StarCraft).
  5. 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 a RTSContainableComponent to all gatherers as well.