Keep pawn through different levels [Solved]
I got a problem trying to keep the "default pawn settings" through two different levels. Here is some Screenshots to better understand my problem.
The first blueprint : will, when I press the Y key, possess another character -> PersoBleu
The second blueprint : When I possess PersoBleu and press the P key, I will open the level named "level1"
And finally the third blueprint "MyGame" :Will set the default pawn character to "PersoBleu"
"Event begin" play linked to "Set default pawn class : PersoBleu"
So I dont understand why, when I open "level1" I spawn with a different character then "PersoBleu"
You need to move the Set Default Pawn Class to the Construction Script. The way you have it now, it changes the Default Pawn Class after the game has already started and the Player Controller has already possessed the Default Pawn Class before it can be updated. If you put this in the Construction Script, it happens before play begins, so your Controller will have a new Default Pawn Class to refer to when it looks for something to possess.
Hope that helps!
answered Aug 21 '14 at 03:22 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here