api:comp_resource_stockpile
Table of Contents
COMP_RESOURCE_STOCKPILE
Category: Component
Parent class: COMPONENT
Properties
ResourceLayoutTypeList
OptionalAllowedResourceList
Allowing only 1 resource on a stockpile will allow the resource to be split between all resource stockpile with this unique resource associated.
- Expected:
list of asset IDs
OptionalAllowedResourceTypeList
If not left empty, the stockpile will only display resource types included in this list
- Type:
list< RESOURCE_TYPE> - Expected:
list of enum values
LocatorPrefix
Optional, allows to use only child game objects whose name starts with this prefix as visual locators. If empty, all child game objects will be used as locators.
- Type:
string - Expected:
string value
DefaultResourceVisual
ResourceStockpileVisualMode
- Expected:
enum value - Default value:
RESOURCE_STOCKPILE_VISUAL_MODE.WAREHOUSE_SPAWN
IsOnlyAccessibleToParentResourceDepot
CanBeUsedForMultipleResource
If checked, the stockpile will allow multiple resource to be stored on the same stockpile, as long as the resources match the filters above
- Type:
boolean - Expected:
boolean value - Default value:
false
DropoffLocator
- Type:
GAME_OBJECT - Expected:
GAME_OBJECT value - Default value:
nil
api/comp_resource_stockpile.txt · Last modified: 2026/10/09 13:20 by 127.0.0.1
