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"

CopyProperties Between Game Modes During Map Travel

With PlayerStates, there is a CopyProperties function that is used during map travel so that the PlayerState in the new map can retrieve info from the previous map.

Is there a similar function that will accomplish this with GameModes as well?

I'm travelling between maps that have different GameModes and I'd like to carry some information from the previous mode to the new mode.

Product Version: UE 4.10
Tags:
more ▼

asked Jan 15 '16 at 12:05 AM in C++ Programming

avatar image

manbearpug
73 2 7 10

avatar image Elewyth Feb 02 '16 at 03:51 PM

I would like to know that, as well. I'm having the exact same scenario. I can't use PlayerState because I need to keep information on AI and such, which don't have a PlayerState.

avatar image erebel55 Mar 30 '17 at 03:34 AM

Either of you figure this out?

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

If you want to keep some informations on GameMode you can set those variables to the GameInstance and use it from your GameMode.

You can also use GameInstance as a payload to pass variables to the new gamemode, override the ProcessServerTravel() and PostSeamlessTravel(), on the first one set variable to GameInstance, and on post set variables from GameInstance to the new GameMode.

more ▼

answered Mar 30 '17 at 11:03 AM

avatar image

Jackblue
244 2 13 14

(comments are locked)
10|2000 characters needed characters left
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