BP_UGS_ResourceNode_HarvestCount
Last updated
Last updated
This class is a child class of the BP_UGS_ResourceNode_Base. It has been set up to allow for harvesting a node X amount of times, and allows you randomize the Harvest Count within a range.
If you want to use this for your own game, then you will need to override the GiveItem function, as the system is currently set up to give items that matches the very basic inventory system which comes with this system.
Make sure you return true if you successfully give an item to the instigator.
Note: This function should be overridden to integrate with your specific inventory setup.
To give an item to the instigator, retrieve the item data from the ItemToGive
input and use the appropriate function from your inventory system. Ensure you return true
to indicate a successful transaction; otherwise, the system will assume that the resource node harvest failed.
The function returns an item of type PDA_Lootable_Data_Def
based on the specified tag which matches the item.
InitialHarvestCount: The initial number of times the resource node is harvestable.
MaxHarvestCount: Defines the maximum times the resource node can be harvested before depletion.
MinHarvestCount: Defines the minimum times the resource node must be harvested before depletion.
ResourceRateRemainders: A map of remaining resources.
HarvestCount: Indicates the current available harvest amount before depletion.