Download

Need help with multiplayer

I would like to make my mod work on servers. I have very little experience when it comes to multiplayer coding. I have read something about it, like replication and that some function must be executed by the server, but I don’t fully understand it.

In my mod player can spawn a dino via a menu, on which they can ride. The coding in my widget blueprint looks like this:

Now when testing it on multiplayer, only the server can spawn the dino. I know this, because only a server can do something like spawning actors. So I have to let the server spawn the dino for the client. Which node should I use? Do I need something with replication.

Hopefully some one can help me with this, because I know very little about it. Let me know if you need more screenshots.

Thanks in advance.

UI stuff is clients side and spawning an actor needs to be done on server side. Which means you need to replicate the request to the server. So that’s why it is not working and what you need to do to get it working.

Best thing for you would be to get used to network replication and get a hang on it. I could help you, but every solution would just open up more questions. So instead I recommend this video series: Introduction to Blueprint Networking - YouTube