From 0744be80bd27f2f50f50f6271a1c5a7dbb0b7e0f Mon Sep 17 00:00:00 2001 From: Joshua Deville Date: Wed, 8 Jul 2026 15:48:29 -0400 Subject: [PATCH] Wire up ship exit/enter possession transition F key on the ship: teleports the player character to just above the ship's location and possesses it. F key on the character: possesses the ship back. Same controller, so possessing one pawn automatically unpossesses the other. Notable implementation detail: GameplayStatics::GetActorOfClass looked like the obvious way to find "the other pawn" at runtime, but this MCP plugin's pin_defaults mechanism can't correctly set a Class- type pin (it accepts the string silently but the compiler later rejects it as an invalid default) -- there's no supported node type for a class-literal either. Worked around it by adding real object- reference variables (PlayerCharacterRef / ShipPawnRef) via unreal.BlueprintEditorLibrary.get_object_reference_type() directly through the Python escape hatch, marking them instance-editable, and wiring the actual actor references between the two placed level instances. Avoids needing any runtime class lookup at all. --- 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 34308a5..5915dd7 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:fd922534ecd990feb9bb20772bbbd5f2391110324dc1dec9fca3d675c0e5cc38 -size 111372 +oid sha256:4217603180be29535f22e9f0758eb5ff491b66e39e1108987f58fec0b3a94a28 +size 121506 diff --git a/Content/Blueprints/BP_ShipPawn.uasset b/Content/Blueprints/BP_ShipPawn.uasset index f63cf3a..923c2e1 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:4c04d72a35196bf3177aec37c3c00b68719e8361515b5a0b4a1be095b604546c -size 179843 +oid sha256:4dc8ebf297562ffc1a2b52881c1f496333d6fe3853fbfedc3d6fabae1e269405 +size 198515 diff --git a/Content/Maps/L_TestFlight.umap b/Content/Maps/L_TestFlight.umap index 5279139..2583e4a 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:76d831977327ef33965ca3539bcc4cb07fc0168ad317100e0d39ce8869c2b3e3 -size 41732 +oid sha256:6ede492bb5e58d2e4c0f88261e5252a897769fa392bdf6490964d6c35fefa9d3 +size 42222