From f2f759e912a5d5bc636aa4125b6c8933806f26dc Mon Sep 17 00:00:00 2001 From: Joshua Deville Date: Wed, 8 Jul 2026 16:03:12 -0400 Subject: [PATCH] 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. --- Content/Blueprints/BP_PlayerCharacter.uasset | 4 ++-- Content/Blueprints/BP_ShipPawn.uasset | 4 ++-- Content/Maps/L_TestFlight.umap | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Content/Blueprints/BP_PlayerCharacter.uasset b/Content/Blueprints/BP_PlayerCharacter.uasset index 343d07d..496908c 100644 --- a/Content/Blueprints/BP_PlayerCharacter.uasset +++ b/Content/Blueprints/BP_PlayerCharacter.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8070686d8445a529dee085526597501d13f158595d1fdf57b1d6941eee146677 -size 121565 +oid sha256:060ae5655c1746cff6e346578878735125673583498ae145009eb308ed2491b4 +size 149946 diff --git a/Content/Blueprints/BP_ShipPawn.uasset b/Content/Blueprints/BP_ShipPawn.uasset index 923c2e1..f9e9eb5 100644 --- a/Content/Blueprints/BP_ShipPawn.uasset +++ b/Content/Blueprints/BP_ShipPawn.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4dc8ebf297562ffc1a2b52881c1f496333d6fe3853fbfedc3d6fabae1e269405 -size 198515 +oid sha256:f1bed6ee5de9ca99e48e620ee3c895d3c1f840f01e0c8172807291c452137b7d +size 222193 diff --git a/Content/Maps/L_TestFlight.umap b/Content/Maps/L_TestFlight.umap index 90fde5e..8b21740 100644 --- a/Content/Maps/L_TestFlight.umap +++ b/Content/Maps/L_TestFlight.umap @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5966d0efc5d8d3cae4bc20a8df9cf4e67e423d995d6e4c99299cec73e094e22f -size 42222 +oid sha256:d5e2b86d981fdece09a9caaad6557409b732b9f07ef5ce974b6a312e9ad30a4f +size 44471