Gatherings (Gatherables)¶
Overview¶
AMIPBaseGatherable is an interactable resource node (AMIPBaseInteractable + ICircularInteractionSphereInterface): players enter a harvest interaction, gathering speed determines who completes first, then loot is granted from UMIPLootDefinitionAsset. After harvest, the node respawns after a random delay between MinRespawnDuration and MaxRespawnDuration.
All paths below are relative to Plugins/ModularInventoryPlus/Source/ModularInventoryPlus/.
Key Classes & Files¶
| Class | File |
|---|---|
AMIPBaseGatherable |
Public/Gatherings/MIPBaseGatherable.h |
EHarvestState |
Default, Harvesting, Harvested (same header) |
AMIPBaseGatherable¶
- Interaction:
InteractThisObject_Implementation— starts harvest when valid;CanPlayerInteract_Implementationincludes slot checks. - Flow:
StartHarvesting→ timer →Harvest(winner controller) →StartRespawning→OnRespawned/ResetHarvest. - Replication:
HarvestStatewithOnRep_HarvestState;K2_OnHarvestStateChangedOnClientfor Blueprint. - Properties:
LootDefinitionAsset, respawn timers,Meshvisibility,GatheringControllerstracking.
Integration¶
- Actors: Pickups & Loot — loot definitions.
- Circular Interaction — sphere interface.
- Interaction — base interactable pipeline.