Skip to content

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_Implementation includes slot checks.
  • Flow: StartHarvesting → timer → Harvest (winner controller) → StartRespawningOnRespawned / ResetHarvest.
  • Replication: HarvestState with OnRep_HarvestState; K2_OnHarvestStateChangedOnClient for Blueprint.
  • Properties: LootDefinitionAsset, respawn timers, Mesh visibility, GatheringControllers tracking.

Integration