x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to use ServerTravel in Blueprints?

Hi all, I am at a loss trying to get ServerTravel to work. I know it's not exposed to Blueprints and that it can only be executed via C++ or command line, but how would I even go about that? What's the syntax I use for ServerTravel, and how do I make it run on server? Where should I put the node and how do I make sure that it runs on the server, not the client?

Thanks!!

Product Version: UE 4.18
Tags:
more ▼

asked Apr 09 '18 at 11:32 PM in Blueprint Scripting

avatar image

cnClockwork
5 4 3 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hello cnClockwork, to do a servertravel there are a few things you want to make sure you have setup correctly.

  1. Make sure you have SeamlessTravel enabled if you want to bring your clients along with you, otherwise when you execute ServerTravel the clients will be "left" behind so to speak and disconnect. This is found in your gamemode blueprint.

  2. For executing ServerTravel you will use the node "Execute Console Command" and inside of it you will put "ServerTravel ". This can also be executed on the command console itself.

  3. Please note for the above, the server has to execute the command. If you are a client trying to execute a ServerTravel command nothing will happen. In blueprints this means you will have to "add a custom event" and chose "Run on Server" under the Replicates tab. You will have to use the custom event feature if you running a dedicated server. The command will work though if you are running a "Listen Server" where one client is hosting.

As you start to dive into networking/replication I would take the time to look over the UE4 Blueprint networking tutorial. It is a few youtube videos that cover a lot of the basics. You can find it here. https://www.unrealengine.com/en-US/blog/blueprint-networking-tutorials

more ▼

answered Apr 09 '18 at 11:59 PM

avatar image

Eromis
56 5 2

avatar image cnClockwork Apr 10 '18 at 06:31 AM

Thanks so much for your reply! You definitely sent me on the right path. It took a while, but I had to change some stuff in the DefaultEngine.ini file. I also had to use the ?listen command at the end of the command node.

avatar image rnktp Jun 24 '19 at 07:10 PM

Could you please share what you changed in DefaultEngine.ini?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question