Hi, I’m a started to UE4. Currently try to figure out the spawning process of the game/on start of a game.
Using ThirdPerson c++ template in 4.9 to show my question.
As we all see, open a fresh,unchanged 3rd person template project will give you a first-person character(blueprint) as a pre-put character in the map when you hit “play” button. Also, in gamemode, the default pawn is this first person character(blueprint). Because the playerstart and the pre-put character’s positions are different, when you delete the character in map(don’t save), engine will generate another character in the position of playerstart, which is still good.
Here is the problem, if you save the map(CTRL-S) after you delete the original pre-put character, and you put another new blueprint character into the scene(and I also can’t redo the delete action when I have saved the map). Then you hit play, you will see youself on the playerstart position, and another player which is the newly put one, in the game.
So I guess there should be a function “AmPawnAlreadySpawned” or a reference or something but I can’t find it. Anyone can help, really appreciate that. Previously I guess it will search for the scene to see whether there is a spwaned same type of pawn, but it looks like the deleted original character break some reference so it generate another character, ignoring the newly put one.
Thanks.