USS Integration Guide
Last updated
Last updated
This guide covers a quick version on how to transfer the logic onto your own character class in order for it to be able to interact with the BP_Spaceship and possess it.Keep in mind this is simplified version of the process intended for Single player
If you are intending to use this pack for project that runs with Multiplayer, there are additional steps added to these events that ensure reliable replication. You will have to copy relevant replication events from
BP_Pilot template.
Add BPI_HumanCharacter Interface and Re-compile your Character class. Then update Is Human? interface call to have Human Boolean set as true, This will allow all external interface calls to recognize this class as human character for the purposes of additional interaction.
This event fires and hides the character when you sit into the cockpit chair. Original character gets hidden, while a copy of your character mesh gets socketed into the cockpit chair and animated to sit. (It's done this way because in certain versions of Unreal engine there are replication errors when socketing an actor to another actor over the network)
This event triggers when character walks into range of BP_Spaceship pilot chair. It receives and records the sending actor and displays a prompt on players viewport
Stored Actor value is later used to posses the ship if player chooses to do so.
Final step is connecting an Interaction Input event to posses the BP_Spaceship and hide the interaction prompt widget from the viewport. This example uses example enhanced input action that comes with this pack.
That's it. You can now Sit in the chair and soar to the skies!