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 do I save a server actor's variables to a local save?

I am using a listen server, that loads a local save file and sets variables on the player character (pawn). I have this working fine (except that clients loading into the level load the server players character when they first spawn in. Fixed this by pretty much initializing the pawn actor to defaults. If there is a way to fix this that would be great also).

My problem is that whenever I finish a "match" I have the game mode which has all connected player controller's on it to do a for each loop and call the save character function for each player controller's controlled pawn. I've only tested this on 2 different computers on different steam accounts, and what ends up happening is the server saves the clients character to their local save, and the client doesn't save at all.

My goal is to have an "end of match" event called on the gamemode, or gamestate, and at that point have all the local player controllers or people in the game save the pawn variables from the local version of the controlled pawn.

Product Version: UE 4.20
more ▼

asked Dec 12 '18 at 05:12 AM in Blueprint Scripting

avatar image

6 2 3

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

0 answers: sort voted first
Be the first one to answer this question
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