Property | Type | Description | |
---|---|---|---|
associatedExtractor | Transform | ||
resourceLevel | float | ||
resourceType | eResourceType |
Method | Description | |
---|---|---|
Awake ( ) : void |
When the script is initialized
|
|
BuildIt ( ) : void |
Override from the CBaseEntity Build an extractor in this resource site
|
|
CanWeBuildInThisResourceSite ( ) : bool |
Tell if we can scavenge this resource site. To do this, it can't have an extractor yet, and must have resources left
|
|
ExtractResource ( float amount ) : ExtractedResource |
Extract a certain amount of metal
|
|
Update ( ) : void |
public CanWeBuildInThisResourceSite ( ) : bool | ||
return | bool |
public ExtractResource ( float amount ) : ExtractedResource | ||
amount | float | /// Float with the amount of resource to be extracted. This value depends of the extractor level /// |
return | ExtractedResource |