The client moves well, but the host cannot move.

I’m making a Steam online game. When the host creates a session, it enters the lobby.
(The game modes in the lobby and in-game are different.)
Below is the game mode in the lobby.

LOBBYGAMEMODE

When I start the game in the lobby and enter the game map, the client can move, but the host cannot.

I made this code through RYAN LALEY’s ONLINE SESSION lecture.

Below is a picture of the game mode and character Spawn Blueprint of In Game

GAMEMODE




Here’s the reason I’m guessing right now.

  1. Something went wrong with the game mode being changed.

  2. The player controller is incorrectly assigned.

  3. Something has not been activated.

I’d really appreciate your help.

Is there a reason that you spawning players by hand and not letting Game Mode handle it?

There’s no other reason.
I was trying to create a Respawn custom event on Gamemode, do you happen to know a solution?

1 and 4 Blueprint is in game mode, where 2 and 3 located?

3 is PlayerController
and 2 is the function in the pawn to be respawned
Sorry for the lack of information

I tried running Respawn on picture 1 in game mode a few minutes ago, but the host still doesn’t move

Is “Chosen Class” a custom variable that you set in lobby? Do you have different player characters?

At first, when I entered the lobby and chose a character, I made the character visible. The character class and the in-game character class are different classes.

Chosen class is a character class that will be used in games, not lobby characters. I made it a variable, but it has in-game character classes as the default

Ok, last qustion. Is player start chosen randomly?

In that picture, it was a method of spawn in a fixed position, but now i’ve also created a random spawn function

Really Thank you for your time!

Here you go:

Game Mode:



Player Character:

If you have questions, ask away!

1 Like

I’m sorry. I slept because I was so tired because it was early in the morning in my country.
Thank you very much for your hard work I’ll try it now !!!

I’m sorry to say this, but it doesn’t work…
Now I’m guessing there’s a problem with posess logic.

There’s one thing I couldn’t say,
Other custom events are executed except for the movement of the character.
For example, functions such as “Play montage”

Oh, I solved it!!
I don’t know why, but when host spawn, MAPPING CONTEXT broke off in character BP.
So when the character spawn, I reconnected CONTEXT and it worked out!
Thank you so much for your help, have a nice day!!

:grinning:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.