Hi, I’ve boiled down what’s been killing me to a test case, and I think it’s a bug in blueprint.
To replicate the bug:
-
Take a blank scene (I used the third person blueprint template).
-
Create 2 children blueprints based off my character (MyCharacter_Child1, MyCharacter_Child2).
-
Create a new class based on ‘pawn’ called ‘deathPawn’
.4 Inside MyCharacter - On begin play, store your current controller into a variable, then create actor ‘deathPawn’ and store the reference to it inside another variable.
-
Inside MyCharacter - On any input - From your controller variable call ‘unpossess’, then call ‘possess’ and input your controller variable and your death pawn variable.
-
Inside deathpawn, using the ‘on possess’ event, store a variable of your new controller.
-
Inside deathpawn, create 2 inputs (anything will do) which spawn MyCharacater_Child1, and MyCharacter_Child2 respectively, unpossess death pawn and immediately possess the created characters.
-
Inside the default ‘mygame’ set it to spawn one of your myCharacter_Child’s. Doesn’t matter which one.
Essentially it’s a simple setup where when you die, you can respawn as a class of your choosing based on a default character class. I can provide pictures if the instructions were unclear.
If you play the explained project above, it will work just fine, the code works, and everything seems good. But if you exit the project, when you load it back up, trying to open any blueprint in the project will crash UE4, trashing the project completely as you can’t even get in to undo it. If anyone has any idea what might be happening here please let me know!