BP_UGS_ResourceNode_HarvestCount

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.

The Give Item Function. You should override this function to have it support giving items with your own inventory system.

Make sure you return true if you successfully give an item to the instigator.

Functions

Give Item

circle-exclamation

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.

Find Item By Tag

The function returns an item of type PDA_Lootable_Data_Def based on the specified tag which matches the item.

Properties

  • 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.

Last updated