How to swap out character pawn blueprints
I'm currently developing a game where you play as a person that can transform into different shapes. I have both a blueprint and pawn controller for every single shape and I basically want to swap them out when pressing left & right shoulder trigger on the controller.
The tutorial about possessing pawns on the unreal site requires you to have your blueprints dragged into the level, and then you just swap out those level actors in the level blueprint. I was wondering if I can 1) do this elsewhere like in a 'master controller' that constantly checks this no matter which level you're in and 2) when I possess a different shape, I want the player to transform into the different shapes on the exact location and rotation it is currently in. Additionally, I also want 3) this setup to allow combo attacks to be carried over in between different shapes in the future.
In other words, I wants some sort of functionality like my image below, only I don't know what to plug in to the "target" or if this even can work. Any tips or other suggested blueprint nodes would be helpful!
Thanks a lot for the help <3
This is the UE4 tutorial I am talking about: https://docs.unrealengine.com/en-US/Gameplay/HowTo/PossessPawns/Blueprints
asked Jan 19 '19 at 01:14 PM in Blueprint Scripting
the target for the posses will always be a player controller, and the in pawn will be the pawn your looking to posses. it seems like your looking to become a different pawn entirely according to your explanation, this is actually quite easy you just need to spawn actor of class then plug that into the posses node. as for spawning it in the exact location and rotation of the current pawn thats pretty simple to since you have to specify where to spawn the new one. you just set the spawn location to the players current location. this can all be done in one place so no need for a master controller or the level bp. as for the combo attack well you just have to have a script for that before you destroy the old pawn.
Follow this question
Once you sign in you will be able to subscribe for any updates here