Hello, I’m working on my in-game menu and I want to have some options(save/load/pause) that show to the host only in a multiplayer game. How would I do that? Does ue4 have a node that can determine that if I’m the host or client?
Thanks!
You can check if one of the players is a server
Ofcorse this won’t work on dedicated server where none of the players are server, in that case you will need to code server commands that player can execute if they have permission determend is some way.
This is exactly what I need, and work great!
I didn’t get to the dedicated server yet, but I have some ideas if I ever get there. I could make a boolean that is set when and by the dedicated server when created and this would be checked by another player before showing the option. Or we could just set a password system.
The code idea is great as well. I just think that IsServer is much better and more efficient for now.
Thank you so much !