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"

Does CopyProperties in PlayerState actually work?

I see that the player state has a CopyProperties event that is supposed to be used to copy data to a new player state when seamlessly travelling to another level. I've tried implementing this event in blueprint but it does nothing. It never gets called when using seamless travel. Is that right? Is it broken or is this not what it's for, or do you need to do it in C++?

Product Version: UE 4.14
Tags:
more ▼

asked Nov 20 '16 at 06:53 AM in Blueprint Scripting

avatar image

wilberolive
295 29 45 47

avatar image wilberolive Nov 21 '16 at 10:02 PM

So I decided to implement it in a custom C++ PlayerState and it does get called there, but it does nothing. The properties don't carry over to the next level after I've copied them to the NewPlayerState. I also tried implementing SeamlessTravelTo and it to does the same thing. Gets called, but the properties don't persist. They are just reset back to their defaults when the next level is loaded.

I'm using my custom player state in the lobby, transition map and the game map and I have seamless travel turned on in all game modes. So there must be something else that is missing.

avatar image frezer748 Mar 21 '19 at 03:21 PM

Are there any updates on this based on Blueprints? How does this event work in blueprints, as it seems like the event won't even get called when using it.

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

1 answer: sort voted first

Finally got it working my changing my PlayerState variables from BlueprintReadWrite to BlueprintReadonly. I have no idea why that makes it work. Very annoying though as you now have to create a Set* UFUNCTION for each variable you want to be able to write to from Blueprint.

more ▼

answered Nov 21 '16 at 10:36 PM

avatar image

wilberolive
295 29 45 47

avatar image mightyenigma Oct 28 '17 at 04:41 AM

Now we just have to figure out how to do it in Blueprints

(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