Add basic resource gathering into ship storage
ResourceNode_01 placed in the landing zone. E key on the character: checks distance to the resource node (via a typed ResourceNodeRef variable, same object-reference technique as the ship/character cross-refs), and if within 300 units calls AddStorage on the ship (through ShipPawnRef) and destroys the node. AddStorage increments StorageAmount up to StorageCapacity, printing feedback either way. Smoke-tested in PIE: no runtime errors.
This commit is contained in:
BIN
Content/Blueprints/BP_ShipPawn.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/BP_ShipPawn.uasset
(Stored with Git LFS)
Binary file not shown.
Reference in New Issue
Block a user