Download

OnlineSubSystem::SetForceDedicated() - what does it do?

Hi,

Does anyone know what this actually does? I’m looking for a more simple way to share game code between Dedicated and Listening servers, but so far this has been quite painful. Some of my code works on Dedicated Servers but not on Listen Servers. Looking at ShooterGame or Unreal Tournament it seems like they have different code paths for each - which is what I’m trying to avoid here as I think this might turn into a maintenance nightmare.

Does SetForceDedicated() help with this? Will it behave like the “Run Dedicated Server” flag does for PIE?

Edit: Okay so I finally found another thread about this:

Disappointing. TLDR; RepNotifies have to be called manually on the server player incase it’s a Listening Server.

/Stefan