So I have a game, in which, the player is a Pawn, and I want to be able to spawn that pawn blueprint on the game start. I created a Game Mode Blueprint, set the default pawn class and set that Blueprint to be the default game mode. But when I start the game, I am set at the center of the level an I can’t move or do anything. Except if I simulate the game and then use possess button, the player is spawned and it works normaly. In every tutorial I’ve seen, that simple Game Mode setup spawned the player right at the start and I don’t know what to do. Could it be, that I’m using a pawn without a player controller?
I am sorry if I’m posting a realy basic question. I am very new to UE4 and I can’t find a lot of useful tutorials or documentation on the internet. There aren’t that many tutorials about Game Mode Blueprints and they are mostly the same.
I have seen a lot of tutorials and read a lot of articles and documentation, and as I said, I didn’t find that much useful info. It was mostly the same every time and I don’t know what’s wrong in my game. Should I just create a player controller to controll the pawn?
You need to setup Game Mode, Player Controller and Pawn. You’ll then need to wire all controls and logic to go with it (e.g. the code to make it move left or right in the manner you want). If you’re struggling with that, you may want to explore the starting templates first.
I don’t think you don’t have a PlayerController. A PlayerController is needed and you can’t set it to NULL in the GameMode anyway.
An advice for posting questions: Please add as much information as you can. In this case: Screenshots of your Blueprints. Because then we can see what you may have done wrong.
If you set a PlayerCharacter/Pawn Class in the GameMode as DefaultPawnClass, it will be spawned on MapStart and Possessed by the PlayerController, which is also specified in the GameMode.
If you don’t set a PlayerCharacter/Pawn Class, you need to spawn it by hand, which can be done via the SpawnActor Node, using the “OnPostLogin” Custom Event in the GameMode (it passes you the PlayerController of the Joining Player. Also works in Singleplayer).
Based on your text, you are using the DefaultPawnClass the GameMode. Please make sure (a second time), that the GameMode is set in the World Settings of the current Map. Otherwise it will use the default GameMode.
Also make sure, that the PlayerStart in your Level is not placed in some wall.
To help you any further, I would need the pictures of GameMode and Level Settings, as well as a picture of your map and where you placed your PlayerStart.