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"

Multiplayer reset level

Hello! I am trying to implement a round-based multiplayer, like Counterstrike. Currently I am resetting my rounds with the ServerTravel console command, but unfortunately this takes a while, in which the player is unable to around. He is only able to look around. Is there a way to implement a more smoother way to reset the level than that? Thanks in advance for your help!

Product Version: UE 4.13
Tags:
more ▼

asked Sep 20 '16 at 10:51 AM in C++ Programming

avatar image

Texon
1 2 3 5

avatar image AllJonasNeeds Sep 20 '16 at 11:03 AM

I have not yet experimented with that myself, but is there any difference, if you just call GameMode->RestartGame()? By default it's just a call to travel to the current map, so I suppose it's the same as what you are doing.

The only other way I could think of would be to implement a Reset() Interface function for every Actor, that teleports those Actors back to their StartingPositions and resets their variable values if neccessary.

avatar image Texon Sep 20 '16 at 01:34 PM

Ok I will try that. Thanks for the help.

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

1 answer: sort voted first

There is an other function

PrepareMapChange/CommitMapChange It allows you to play and wait until the map is loaded

Could five it a try: https://answers.unrealengine.com/questions/46503/how-to-use-preparemapchangecommitmapchange.html

more ▼

answered Sep 20 '16 at 08:40 PM

avatar image

Draykoon
111 4 4 5

(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